#CFAF45#CFAF45
#CFAF45 is a light, vivid yellow. Relative luminance 0.444; OKLCH L 76.3% C 0.128 H 92.1°. Best body text is #000000 at 9.87:1 contrast (WCAG AA passes).
Color values
| HEX | #CFAF45 |
|---|---|
| RGB | rgb(207, 175, 69) |
| HSL | hsl(46, 59%, 54%) |
| HSV | hsv(46, 67%, 81%) |
| CMYK | cmyk(0%, 15.5%, 66.7%, 18.8%) |
| CIE-LAB | lab(72.47, -0.07, 56.72) |
| CIE-LCH | lch(72.47, 56.72, 90.07°) |
| OKLab | oklab(76.27% -0.0048 0.1282) |
| OKLCH | oklch(76.27% 0.128 92.1) |
| XYZ | xyz(42.1384, 44.3574, 11.9714) |
| Luminance | 0.4435 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard
#DBB42C
ΔE00 3.66
Desert
#CCAD60
ΔE00 4.32
Burnt Yellow
#D5AB09
ΔE00 4.60
Gold (survey)
#DBB40C
ΔE00 5.03
Brownish Yellow
#C9B003
ΔE00 5.21
Dark Yellow
#D5B60A
ΔE00 5.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CFAF45 #4565CF
analogous
#CF6A45 #CFAF45 #AACF45
triadic
#CFAF45 #45CFAF #AF45CF
tetradic
#CFAF45 #45CF6A #4565CF #CF45AA
square
#CFAF45 #45CF6A #4565CF #CF45AA
split-complementary
#CFAF45 #45AACF #6A45CF
monochromatic
#7A6520 #AB8D2C #CFAF45 #DCC476 #E8D9A6
Accessibility & contrast
On white
2.13
#CFAF45 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.87
#CFAF45 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CFAF45
9.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CFAF45 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CFAF45 | 1.00 | 2.13 | 9.87 | 9.87 |
| #FFFFFF | 2.13 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.87 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.87 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C1AC38
Deuteranopia (green-blind)
#C9B64A
Tritanopia (blue-blind)
#DFA299
Achromatopsia (no color)
#B2B2B2
Design tokens & code
CSS
--color: #cfaf45; /* rgb */ color: rgb(207, 175, 69); /* oklch */ color: oklch(76.3% 0.128 92.1);
Tailwind
colors: {
custom: {
50: '#e1c67e',
500: '#cfaf45',
950: '#000000',
},
}SCSS
$custom: #cfaf45; $custom-light: #e1c67e; $custom-dark: #000000;
JSON
{
"hex": "#cfaf45",
"rgb": {
"r": 207,
"g": 175,
"b": 69
},
"hsl": {
"h": 46.087,
"s": 58.974,
"l": 54.118
},
"oklch": {
"l": 0.76271,
"c": 0.12831,
"h": 92.1
},
"luminance": 0.44355
}Semantic roles & 50–950 ramp
primary
#CFAF45
secondary
#9BA8D5
accent
#6AE246
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C