#CFD171#CFD171
#CFD171 is a very light, moderate yellow. Relative luminance 0.601; OKLCH L 83.9% C 0.120 H 109.8°. Best body text is #000000 at 13.01:1 contrast (WCAG AA passes).
Color values
| HEX | #CFD171 |
|---|---|
| RGB | rgb(207, 209, 113) |
| HSL | hsl(61, 51%, 63%) |
| HSV | hsv(61, 46%, 82%) |
| CMYK | cmyk(1%, 0%, 45.9%, 18%) |
| CIE-LAB | lab(81.87, -14.19, 47.10) |
| CIE-LCH | lch(81.87, 49.19, 106.77°) |
| OKLab | oklab(83.88% -0.0404 0.1125) |
| OKLCH | oklch(83.88% 0.12 109.8) |
| XYZ | xyz(51.5142, 60.0597, 24.4986) |
| Luminance | 0.6006 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Greenish Beige
#C9D179
ΔE00 2.18
Greenish Tan
#BCCB7A
ΔE00 4.89
Khaki (CSS)
#F0E68C
ΔE00 6.31
Pale Olive
#B9CC81
ΔE00 6.38
Darkkhaki
#BDB76B
ΔE00 7.04
Light Olive
#ACBF69
ΔE00 7.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CFD171 #7371D1
analogous
#D1A371 #CFD171 #9FD171
triadic
#CFD171 #71CFD1 #D171CF
tetradic
#CFD171 #71D1A3 #7371D1 #D1719F
square
#CFD171 #71D1A3 #7371D1 #D1719F
split-complementary
#CFD171 #719FD1 #A371D1
monochromatic
#959731 #BFC243 #CFD171 #DFE09F #EEEFCD
Accessibility & contrast
On white
1.61
#CFD171 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
13.01
#CFD171 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CFD171
13.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CFD171 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CFD171 | 1.00 | 1.61 | 13.01 | 13.01 |
| #FFFFFF | 1.61 | 1.00 | 21.00 | 21.00 |
| #000000 | 13.01 | 21.00 | 1.00 | 1.00 |
| ##000000 | 13.01 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#DECA69
Deuteranopia (green-blind)
#DFCD76
Tritanopia (blue-blind)
#DBC7BA
Achromatopsia (no color)
#CCCCCC
Design tokens & code
CSS
--color: #cfd171; /* rgb */ color: rgb(207, 209, 113); /* oklch */ color: oklch(83.9% 0.120 109.8);
Tailwind
colors: {
custom: {
50: '#dfdf9c',
500: '#cfd171',
950: '#000000',
},
}SCSS
$custom: #cfd171; $custom-light: #dfdf9c; $custom-dark: #000000;
JSON
{
"hex": "#cfd171",
"rgb": {
"r": 207,
"g": 209,
"b": 113
},
"hsl": {
"h": 61.25,
"s": 51.064,
"l": 63.137
},
"oklch": {
"l": 0.83877,
"c": 0.11955,
"h": 109.8
},
"luminance": 0.60059
}Semantic roles & 50–950 ramp
primary
#CFD171
secondary
#4C4A9C
accent
#27BE2A
background
#FEFEFC
surface
#FCFCF5
border
#D5D5CF
text
#15150E
muted
#84847F