#CFAF42#CFAF42
#CFAF42 is a light, vivid yellow. Relative luminance 0.443; OKLCH L 76.2% C 0.131 H 92.5°. Best body text is #000000 at 9.86:1 contrast (WCAG AA passes).
Color values
| HEX | #CFAF42 |
|---|---|
| RGB | rgb(207, 175, 66) |
| HSL | hsl(46, 59%, 54%) |
| HSV | hsv(46, 68%, 81%) |
| CMYK | cmyk(0%, 15.5%, 68.1%, 18.8%) |
| CIE-LAB | lab(72.44, -0.24, 57.97) |
| CIE-LCH | lch(72.44, 57.97, 90.23°) |
| OKLab | oklab(76.24% -0.0056 0.1304) |
| OKLCH | oklch(76.24% 0.131 92.5) |
| XYZ | xyz(42.0476, 44.3211, 11.4933) |
| Luminance | 0.4432 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard
#DBB42C
ΔE00 3.41
Burnt Yellow
#D5AB09
ΔE00 4.32
Desert
#CCAD60
ΔE00 4.68
Gold (survey)
#DBB40C
ΔE00 4.73
Brownish Yellow
#C9B003
ΔE00 4.87
Dark Yellow
#D5B60A
ΔE00 4.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CFAF42 #4262CF
analogous
#CF6842 #CFAF42 #A8CF42
triadic
#CFAF42 #42CFAF #AF42CF
tetradic
#CFAF42 #42CF68 #4262CF #CF42A8
square
#CFAF42 #42CF68 #4262CF #CF42A8
split-complementary
#CFAF42 #42A8CF #6842CF
monochromatic
#78641F #A98C2B #CFAF42 #DBC473 #E8D8A4
Accessibility & contrast
On white
2.13
#CFAF42 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.86
#CFAF42 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CFAF42
9.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CFAF42 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CFAF42 | 1.00 | 2.13 | 9.86 | 9.86 |
| #FFFFFF | 2.13 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.86 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.86 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C1AC34
Deuteranopia (green-blind)
#C9B647
Tritanopia (blue-blind)
#DFA198
Achromatopsia (no color)
#B2B2B2
Design tokens & code
CSS
--color: #cfaf42; /* rgb */ color: rgb(207, 175, 66); /* oklch */ color: oklch(76.2% 0.131 92.5);
Tailwind
colors: {
custom: {
50: '#e1c67c',
500: '#cfaf42',
950: '#000000',
},
}SCSS
$custom: #cfaf42; $custom-light: #e1c67c; $custom-dark: #000000;
JSON
{
"hex": "#cfaf42",
"rgb": {
"r": 207,
"g": 175,
"b": 66
},
"hsl": {
"h": 46.383,
"s": 59.494,
"l": 53.529
},
"oklch": {
"l": 0.76244,
"c": 0.1305,
"h": 92.5
},
"luminance": 0.44319
}Semantic roles & 50–950 ramp
primary
#CFAF42
secondary
#98A6D5
accent
#69E345
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C