#CDC171#CDC171
#CDC171 is a light, moderate yellow. Relative luminance 0.523; OKLCH L 80.3% C 0.102 H 100.9°. Best body text is #000000 at 11.46:1 contrast (WCAG AA passes).
Color values
| HEX | #CDC171 |
|---|---|
| RGB | rgb(205, 193, 113) |
| HSL | hsl(52, 48%, 62%) |
| HSV | hsv(52, 45%, 80%) |
| CMYK | cmyk(0%, 5.9%, 44.9%, 19.6%) |
| CIE-LAB | lab(77.47, -6.85, 41.65) |
| CIE-LCH | lch(77.47, 42.20, 99.34°) |
| OKLab | oklab(80.34% -0.0193 0.1004) |
| OKLCH | oklch(80.34% 0.102 100.9) |
| XYZ | xyz(47.2286, 52.3128, 23.2291) |
| Luminance | 0.5231 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Darkkhaki
#BDB76B
ΔE00 3.45
Sand (survey)
#E2CA76
ΔE00 4.47
Greenish Beige
#C9D179
ΔE00 6.29
Sand
#C2B280
ΔE00 7.06
Tan (survey)
#D1B26F
ΔE00 7.25
Desert
#CCAD60
ΔE00 7.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CDC171 #717DCD
analogous
#CD9371 #CDC171 #ABCD71
triadic
#CDC171 #71CDC1 #C171CD
tetradic
#CDC171 #71CD93 #717DCD #CD71AB
square
#CDC171 #71CD93 #717DCD #CD71AB
split-complementary
#CDC171 #71ABCD #9371CD
monochromatic
#918433 #BDAD44 #CDC171 #DDD59E #EDE9CC
Accessibility & contrast
On white
1.83
#CDC171 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.46
#CDC171 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CDC171
11.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CDC171 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CDC171 | 1.00 | 1.83 | 11.46 | 11.46 |
| #FFFFFF | 1.83 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.46 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.46 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#CEBC6B
Deuteranopia (green-blind)
#D2C274
Tritanopia (blue-blind)
#D9B7AE
Achromatopsia (no color)
#BFBFBF
Design tokens & code
CSS
--color: #cdc171; /* rgb */ color: rgb(205, 193, 113); /* oklch */ color: oklch(80.3% 0.102 100.9);
Tailwind
colors: {
custom: {
50: '#ded39b',
500: '#cdc171',
950: '#000000',
},
}SCSS
$custom: #cdc171; $custom-light: #ded39b; $custom-dark: #000000;
JSON
{
"hex": "#cdc171",
"rgb": {
"r": 205,
"g": 193,
"b": 113
},
"hsl": {
"h": 52.174,
"s": 47.917,
"l": 62.353
},
"oklch": {
"l": 0.80339,
"c": 0.10222,
"h": 100.9
},
"luminance": 0.52311
}Semantic roles & 50–950 ramp
primary
#CDC171
secondary
#4B5597
accent
#3DBB2A
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F