#CDC978#CDC978
#CDC978 is a very light, moderate yellow. Relative luminance 0.561; OKLCH L 82.1% C 0.103 H 106.0°. Best body text is #000000 at 12.22:1 contrast (WCAG AA passes).
Color values
| HEX | #CDC978 |
|---|---|
| RGB | rgb(205, 201, 120) |
| HSL | hsl(57, 46%, 64%) |
| HSV | hsv(57, 41%, 80%) |
| CMYK | cmyk(0%, 2%, 41.5%, 19.6%) |
| CIE-LAB | lab(79.68, -10.24, 40.89) |
| CIE-LCH | lch(79.68, 42.16, 104.06°) |
| OKLab | oklab(82.12% -0.0284 0.0991) |
| OKLCH | oklch(82.12% 0.103 106) |
| XYZ | xyz(49.4545, 56.1097, 25.9908) |
| Luminance | 0.5611 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Greenish Beige
#C9D179
ΔE00 3.51
Darkkhaki
#BDB76B
ΔE00 4.62
Greenish Tan
#BCCB7A
ΔE00 5.07
Sand (survey)
#E2CA76
ΔE00 5.91
Pale Olive
#B9CC81
ΔE00 6.37
Light Olive
#ACBF69
ΔE00 7.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CDC978 #787CCD
analogous
#CD9E78 #CDC978 #A6CD78
triadic
#CDC978 #78CDC9 #C978CD
tetradic
#CDC978 #78CD9E #787CCD #CD78A6
square
#CDC978 #78CD9E #787CCD #CD78A6
split-complementary
#CDC978 #78A6CD #9E78CD
monochromatic
#948F37 #BCB74B #CDC978 #DEDBA5 #EEEDD1
Accessibility & contrast
On white
1.72
#CDC978 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
12.22
#CDC978 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CDC978
12.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CDC978 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CDC978 | 1.00 | 1.72 | 12.22 | 12.22 |
| #FFFFFF | 1.72 | 1.00 | 21.00 | 21.00 |
| #000000 | 12.22 | 21.00 | 1.00 | 1.00 |
| ##000000 | 12.22 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D6C372
Deuteranopia (green-blind)
#D8C77C
Tritanopia (blue-blind)
#D8BFB5
Achromatopsia (no color)
#C5C5C5
Design tokens & code
CSS
--color: #cdc978; /* rgb */ color: rgb(205, 201, 120); /* oklch */ color: oklch(82.1% 0.103 106.0);
Tailwind
colors: {
custom: {
50: '#ddd9a0',
500: '#cdc978',
950: '#000000',
},
}SCSS
$custom: #cdc978; $custom-light: #ddd9a0; $custom-dark: #000000;
JSON
{
"hex": "#cdc978",
"rgb": {
"r": 205,
"g": 201,
"b": 120
},
"hsl": {
"h": 57.176,
"s": 45.946,
"l": 63.725
},
"oklch": {
"l": 0.82122,
"c": 0.10312,
"h": 106
},
"luminance": 0.56108
}Semantic roles & 50–950 ramp
primary
#CDC978
secondary
#4F539A
accent
#33B92C
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140F
muted
#848380