#CDC172#CDC172
#CDC172 is a light, moderate yellow. Relative luminance 0.523; OKLCH L 80.4% C 0.101 H 100.8°. Best body text is #000000 at 11.47:1 contrast (WCAG AA passes).
Color values
| HEX | #CDC172 |
|---|---|
| RGB | rgb(205, 193, 114) |
| HSL | hsl(52, 48%, 63%) |
| HSV | hsv(52, 44%, 80%) |
| CMYK | cmyk(0%, 5.9%, 44.4%, 19.6%) |
| CIE-LAB | lab(77.48, -6.75, 41.16) |
| CIE-LCH | lch(77.48, 41.71, 99.31°) |
| OKLab | oklab(80.35% -0.0189 0.0994) |
| OKLCH | oklch(80.35% 0.101 100.8) |
| XYZ | xyz(47.2852, 52.3355, 23.5273) |
| Luminance | 0.5233 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Darkkhaki
#BDB76B
ΔE00 3.44
Sand (survey)
#E2CA76
ΔE00 4.48
Greenish Beige
#C9D179
ΔE00 6.31
Sand
#C2B280
ΔE00 6.93
Tan (survey)
#D1B26F
ΔE00 7.18
Desert
#CCAD60
ΔE00 7.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CDC172 #727ECD
analogous
#CD9472 #CDC172 #ABCD72
triadic
#CDC172 #72CDC1 #C172CD
tetradic
#CDC172 #72CD94 #727ECD #CD72AB
square
#CDC172 #72CD94 #727ECD #CD72AB
split-complementary
#CDC172 #72ABCD #9472CD
monochromatic
#918533 #BDAD45 #CDC172 #DDD59F #EDE9CC
Accessibility & contrast
On white
1.83
#CDC172 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.47
#CDC172 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CDC172
11.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CDC172 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CDC172 | 1.00 | 1.83 | 11.47 | 11.47 |
| #FFFFFF | 1.83 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.47 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.47 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#CEBD6C
Deuteranopia (green-blind)
#D2C275
Tritanopia (blue-blind)
#D9B7AE
Achromatopsia (no color)
#BFBFBF
Design tokens & code
CSS
--color: #cdc172; /* rgb */ color: rgb(205, 193, 114); /* oklch */ color: oklch(80.4% 0.101 100.8);
Tailwind
colors: {
custom: {
50: '#ded39c',
500: '#cdc172',
950: '#000000',
},
}SCSS
$custom: #cdc172; $custom-light: #ded39c; $custom-dark: #000000;
JSON
{
"hex": "#cdc172",
"rgb": {
"r": 205,
"g": 193,
"b": 114
},
"hsl": {
"h": 52.088,
"s": 47.644,
"l": 62.549
},
"oklch": {
"l": 0.80354,
"c": 0.10115,
"h": 100.8
},
"luminance": 0.52334
}Semantic roles & 50–950 ramp
primary
#CDC172
secondary
#4C5697
accent
#3EBB2B
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F