#FFD307
A medium, vivid yellow closely aligning with Gold.
About #FFD307
The precise color #FFD307 is an excellent choice for modern design projects. It is closely associated with the named CSS color Gold. To achieve this exact tint on a monitor, you would use an RGB mix of 255, 211, and 7.
While screens use RGB, printing presses rely on Cyan, Magenta, Yellow, and Key (black). This specific hue requires a mix of 0% C, 17% M, 97% Y, and 0% K. The HSL representation is 49.4° hue, 100.0% saturation, and 51.4% lightness.
Contrast ratios determine whether this color is safe for typography. Because it is a medium color, it is generally recommended to use #000000 text. Be sure to check our contrast matrix below to see exactly how it performs against common backgrounds.
Color Space Conversions
HEX#FFD307
RGB255, 211, 7
HSL49.4°, 100.0%, 51.4%
CMYK0%, 17%, 97%, 0%
HSV49.4°, 97.3%, 100.0%
LAB85.9, 0.2, 85.8
XYZ64.6, 67.9, 9.9
Decimal16765703
Color Harmonies
Tints, Shades & Tones
Tints (Adding White)
Shades (Adding Black)
WCAG Contrast Accessibility
1.44:1
Text on #FFFFFF
FAIL
14.57:1
Text on #000000
AAA
1.38:1
Text on #F8FAFC
FAIL
12.39:1
Text on #0F172A
AAA
CSS Implementation
.bg-color {
background-color: #FFD307;
}
.text-color {
color: #FFD307;
}
.border-color {
border: 2px solid #FFD307;
}