#CFC171#CFC171
#CFC171 is a light, moderate yellow. Relative luminance 0.526; OKLCH L 80.5% C 0.102 H 99.6°. Best body text is #000000 at 11.52:1 contrast (WCAG AA passes).
Color values
| HEX | #CFC171 |
|---|---|
| RGB | rgb(207, 193, 113) |
| HSL | hsl(51, 49%, 63%) |
| HSV | hsv(51, 45%, 81%) |
| CMYK | cmyk(0%, 6.8%, 45.4%, 18.8%) |
| CIE-LAB | lab(77.64, -6.04, 41.89) |
| CIE-LCH | lch(77.64, 42.33, 98.20°) |
| OKLab | oklab(80.51% -0.017 0.1009) |
| OKLCH | oklch(80.51% 0.102 99.6) |
| XYZ | xyz(47.7839, 52.5992, 23.2552) |
| Luminance | 0.5260 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Darkkhaki
#BDB76B
ΔE00 3.86
Sand (survey)
#E2CA76
ΔE00 3.96
Greenish Beige
#C9D179
ΔE00 6.77
Tan (survey)
#D1B26F
ΔE00 6.79
Desert
#CCAD60
ΔE00 6.93
Sand
#C2B280
ΔE00 6.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CFC171 #717FCF
analogous
#CF9271 #CFC171 #AECF71
triadic
#CFC171 #71CFC1 #C171CF
tetradic
#CFC171 #71CF92 #717FCF #CF71AE
square
#CFC171 #71CF92 #717FCF #CF71AE
split-complementary
#CFC171 #71AECF #9271CF
monochromatic
#948532 #C0AD43 #CFC171 #DED59F #EEE9CC
Accessibility & contrast
On white
1.82
#CFC171 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.52
#CFC171 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CFC171
11.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CFC171 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CFC171 | 1.00 | 1.82 | 11.52 | 11.52 |
| #FFFFFF | 1.82 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.52 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.52 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#CFBD6B
Deuteranopia (green-blind)
#D3C274
Tritanopia (blue-blind)
#DCB7AE
Achromatopsia (no color)
#C0C0C0
Design tokens & code
CSS
--color: #cfc171; /* rgb */ color: rgb(207, 193, 113); /* oklch */ color: oklch(80.5% 0.102 99.6);
Tailwind
colors: {
custom: {
50: '#dfd39b',
500: '#cfc171',
950: '#000000',
},
}SCSS
$custom: #cfc171; $custom-light: #dfd39b; $custom-dark: #000000;
JSON
{
"hex": "#cfc171",
"rgb": {
"r": 207,
"g": 193,
"b": 113
},
"hsl": {
"h": 51.064,
"s": 49.474,
"l": 62.745
},
"oklch": {
"l": 0.80514,
"c": 0.10236,
"h": 99.6
},
"luminance": 0.52598
}Semantic roles & 50–950 ramp
primary
#CFC171
secondary
#4B569A
accent
#3FBD29
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F