#CFC871#CFC871
#CFC871 is a light, moderate yellow. Relative luminance 0.558; OKLCH L 82.0% C 0.109 H 104.5°. Best body text is #000000 at 12.15:1 contrast (WCAG AA passes).
Color values
| HEX | #CFC871 |
|---|---|
| RGB | rgb(207, 200, 113) |
| HSL | hsl(56, 49%, 63%) |
| HSV | hsv(56, 45%, 81%) |
| CMYK | cmyk(0%, 3.4%, 45.4%, 18.8%) |
| CIE-LAB | lab(79.48, -9.64, 44.17) |
| CIE-LCH | lch(79.48, 45.21, 102.31°) |
| OKLab | oklab(81.98% -0.0274 0.106) |
| OKLCH | oklch(81.98% 0.109 104.5) |
| XYZ | xyz(49.3681, 55.7676, 23.7832) |
| Luminance | 0.5577 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Greenish Beige
#C9D179
ΔE00 4.30
Darkkhaki
#BDB76B
ΔE00 4.70
Sand (survey)
#E2CA76
ΔE00 5.13
Greenish Tan
#BCCB7A
ΔE00 6.12
Sandy
#F1DA7A
ΔE00 6.72
Khaki (CSS)
#F0E68C
ΔE00 7.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CFC871 #7178CF
analogous
#CF9971 #CFC871 #A7CF71
triadic
#CFC871 #71CFC8 #C871CF
tetradic
#CFC871 #71CF99 #7178CF #CF71A7
square
#CFC871 #71CF99 #7178CF #CF71A7
split-complementary
#CFC871 #71A7CF #9971CF
monochromatic
#948C32 #C0B643 #CFC871 #DEDA9F #EEEBCC
Accessibility & contrast
On white
1.73
#CFC871 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
12.15
#CFC871 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CFC871
12.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CFC871 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CFC871 | 1.00 | 1.73 | 12.15 | 12.15 |
| #FFFFFF | 1.73 | 1.00 | 21.00 | 21.00 |
| #000000 | 12.15 | 21.00 | 1.00 | 1.00 |
| ##000000 | 12.15 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D6C26A
Deuteranopia (green-blind)
#D8C775
Tritanopia (blue-blind)
#DBBEB3
Achromatopsia (no color)
#C5C5C5
Design tokens & code
CSS
--color: #cfc871; /* rgb */ color: rgb(207, 200, 113); /* oklch */ color: oklch(82.0% 0.109 104.5);
Tailwind
colors: {
custom: {
50: '#dfd89b',
500: '#cfc871',
950: '#000000',
},
}SCSS
$custom: #cfc871; $custom-light: #dfd89b; $custom-dark: #000000;
JSON
{
"hex": "#cfc871",
"rgb": {
"r": 207,
"g": 200,
"b": 113
},
"hsl": {
"h": 55.532,
"s": 49.474,
"l": 62.745
},
"oklch": {
"l": 0.81976,
"c": 0.10949,
"h": 104.5
},
"luminance": 0.55766
}Semantic roles & 50–950 ramp
primary
#CFC871
secondary
#4B509A
accent
#34BD29
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F