#CDC170#CDC170
#CDC170 is a light, moderate yellow. Relative luminance 0.523; OKLCH L 80.3% C 0.103 H 101.0°. Best body text is #000000 at 11.46:1 contrast (WCAG AA passes).
Color values
| HEX | #CDC170 |
|---|---|
| RGB | rgb(205, 193, 112) |
| HSL | hsl(52, 48%, 62%) |
| HSV | hsv(52, 45%, 80%) |
| CMYK | cmyk(0%, 5.9%, 45.4%, 19.6%) |
| CIE-LAB | lab(77.45, -6.95, 42.13) |
| CIE-LCH | lch(77.45, 42.70, 99.37°) |
| OKLab | oklab(80.32% -0.0196 0.1014) |
| OKLCH | oklch(80.32% 0.103 101) |
| XYZ | xyz(47.1726, 52.2904, 22.9343) |
| Luminance | 0.5229 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Darkkhaki
#BDB76B
ΔE00 3.48
Sand (survey)
#E2CA76
ΔE00 4.46
Greenish Beige
#C9D179
ΔE00 6.27
Sand
#C2B280
ΔE00 7.20
Tan (survey)
#D1B26F
ΔE00 7.31
Desert
#CCAD60
ΔE00 7.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CDC170 #707CCD
analogous
#CD9370 #CDC170 #ABCD70
triadic
#CDC170 #70CDC1 #C170CD
tetradic
#CDC170 #70CD93 #707CCD #CD70AB
square
#CDC170 #70CD93 #707CCD #CD70AB
split-complementary
#CDC170 #70ABCD #9370CD
monochromatic
#908432 #BDAD43 #CDC170 #DDD59D #EDE8CB
Accessibility & contrast
On white
1.83
#CDC170 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.46
#CDC170 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CDC170
11.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CDC170 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CDC170 | 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)
#CFBC69
Deuteranopia (green-blind)
#D2C273
Tritanopia (blue-blind)
#D9B7AE
Achromatopsia (no color)
#BFBFBF
Design tokens & code
CSS
--color: #cdc170; /* rgb */ color: rgb(205, 193, 112); /* oklch */ color: oklch(80.3% 0.103 101.0);
Tailwind
colors: {
custom: {
50: '#ded39a',
500: '#cdc170',
950: '#000000',
},
}SCSS
$custom: #cdc170; $custom-light: #ded39a; $custom-dark: #000000;
JSON
{
"hex": "#cdc170",
"rgb": {
"r": 205,
"g": 193,
"b": 112
},
"hsl": {
"h": 52.258,
"s": 48.187,
"l": 62.157
},
"oklch": {
"l": 0.80324,
"c": 0.1033,
"h": 101
},
"luminance": 0.52289
}Semantic roles & 50–950 ramp
primary
#CDC170
secondary
#4B5497
accent
#3DBB2A
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F