#CFAE42#CFAE42
#CFAE42 is a light, vivid yellow. Relative luminance 0.439; OKLCH L 76.0% C 0.130 H 91.8°. Best body text is #000000 at 9.79:1 contrast (WCAG AA passes).
Color values
| HEX | #CFAE42 |
|---|---|
| RGB | rgb(207, 174, 66) |
| HSL | hsl(46, 59%, 54%) |
| HSV | hsv(46, 68%, 81%) |
| CMYK | cmyk(0%, 15.9%, 68.1%, 18.8%) |
| CIE-LAB | lab(72.18, 0.29, 57.70) |
| CIE-LCH | lch(72.18, 57.70, 89.71°) |
| OKLab | oklab(76.04% -0.0041 0.1298) |
| OKLCH | oklch(76.04% 0.13 91.8) |
| XYZ | xyz(41.8537, 43.9332, 11.4287) |
| Luminance | 0.4393 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard
#DBB42C
ΔE00 3.49
Burnt Yellow
#D5AB09
ΔE00 4.24
Desert
#CCAD60
ΔE00 4.51
Gold (survey)
#DBB40C
ΔE00 4.84
Brownish Yellow
#C9B003
ΔE00 5.13
Dark Yellow
#D5B60A
ΔE00 5.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CFAE42 #4263CF
analogous
#CF6742 #CFAE42 #AACF42
triadic
#CFAE42 #42CFAE #AE42CF
tetradic
#CFAE42 #42CF67 #4263CF #CF42AA
square
#CFAE42 #42CF67 #4263CF #CF42AA
split-complementary
#CFAE42 #42AACF #6742CF
monochromatic
#78631F #A98B2B #CFAE42 #DBC373 #E8D8A4
Accessibility & contrast
On white
2.15
#CFAE42 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.79
#CFAE42 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CFAE42
9.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CFAE42 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CFAE42 | 1.00 | 2.15 | 9.79 | 9.79 |
| #FFFFFF | 2.15 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.79 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.79 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C0AB34
Deuteranopia (green-blind)
#C9B547
Tritanopia (blue-blind)
#DFA098
Achromatopsia (no color)
#B1B1B1
Design tokens & code
CSS
--color: #cfae42; /* rgb */ color: rgb(207, 174, 66); /* oklch */ color: oklch(76.0% 0.130 91.8);
Tailwind
colors: {
custom: {
50: '#e1c57c',
500: '#cfae42',
950: '#000000',
},
}SCSS
$custom: #cfae42; $custom-light: #e1c57c; $custom-dark: #000000;
JSON
{
"hex": "#cfae42",
"rgb": {
"r": 207,
"g": 174,
"b": 66
},
"hsl": {
"h": 45.957,
"s": 59.494,
"l": 53.529
},
"oklch": {
"l": 0.7604,
"c": 0.12988,
"h": 91.8
},
"luminance": 0.43931
}Semantic roles & 50–950 ramp
primary
#CFAE42
secondary
#98A6D5
accent
#6AE345
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16120A
muted
#84817C