#CFC874#CFC874
#CFC874 is a very light, moderate yellow. Relative luminance 0.558; OKLCH L 82.0% C 0.106 H 104.3°. Best body text is #000000 at 12.17:1 contrast (WCAG AA passes).
Color values
| HEX | #CFC874 |
|---|---|
| RGB | rgb(207, 200, 116) |
| HSL | hsl(55, 49%, 63%) |
| HSV | hsv(55, 44%, 81%) |
| CMYK | cmyk(0%, 3.4%, 44%, 18.8%) |
| CIE-LAB | lab(79.52, -9.34, 42.73) |
| CIE-LCH | lch(79.52, 43.74, 102.33°) |
| OKLab | oklab(82.02% -0.0263 0.103) |
| OKLCH | oklch(82.02% 0.106 104.3) |
| XYZ | xyz(49.5398, 55.8363, 24.6875) |
| Luminance | 0.5584 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Greenish Beige
#C9D179
ΔE00 4.28
Darkkhaki
#BDB76B
ΔE00 4.58
Sand (survey)
#E2CA76
ΔE00 5.09
Greenish Tan
#BCCB7A
ΔE00 6.00
Sandy
#F1DA7A
ΔE00 6.81
Khaki (CSS)
#F0E68C
ΔE00 7.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CFC874 #747BCF
analogous
#CF9A74 #CFC874 #A8CF74
triadic
#CFC874 #74CFC8 #C874CF
tetradic
#CFC874 #74CF9A #747BCF #CF74A8
square
#CFC874 #74CF9A #747BCF #CF74A8
split-complementary
#CFC874 #74A8CF #9A74CF
monochromatic
#958E33 #BFB647 #CFC874 #DFDAA1 #EEECCF
Accessibility & contrast
On white
1.73
#CFC874 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
12.17
#CFC874 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CFC874
12.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CFC874 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CFC874 | 1.00 | 1.73 | 12.17 | 12.17 |
| #FFFFFF | 1.73 | 1.00 | 21.00 | 21.00 |
| #000000 | 12.17 | 21.00 | 1.00 | 1.00 |
| ##000000 | 12.17 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D5C36D
Deuteranopia (green-blind)
#D8C778
Tritanopia (blue-blind)
#DBBEB4
Achromatopsia (no color)
#C5C5C5
Design tokens & code
CSS
--color: #cfc874; /* rgb */ color: rgb(207, 200, 116); /* oklch */ color: oklch(82.0% 0.106 104.3);
Tailwind
colors: {
custom: {
50: '#dfd89d',
500: '#cfc874',
950: '#000000',
},
}SCSS
$custom: #cfc874; $custom-light: #dfd89d; $custom-dark: #000000;
JSON
{
"hex": "#cfc874",
"rgb": {
"r": 207,
"g": 200,
"b": 116
},
"hsl": {
"h": 55.385,
"s": 48.663,
"l": 63.333
},
"oklch": {
"l": 0.8202,
"c": 0.1063,
"h": 104.3
},
"luminance": 0.55835
}Semantic roles & 50–950 ramp
primary
#CFC874
secondary
#4C529B
accent
#35BC2A
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F