#CDC478#CDC478
#CDC478 is a light, moderate yellow. Relative luminance 0.538; OKLCH L 81.1% C 0.098 H 102.4°. Best body text is #000000 at 11.76:1 contrast (WCAG AA passes).
Color values
| HEX | #CDC478 |
|---|---|
| RGB | rgb(205, 196, 120) |
| HSL | hsl(54, 46%, 64%) |
| HSV | hsv(54, 41%, 80%) |
| CMYK | cmyk(0%, 4.4%, 41.5%, 19.6%) |
| CIE-LAB | lab(78.35, -7.68, 39.23) |
| CIE-LCH | lch(78.35, 39.97, 101.08°) |
| OKLab | oklab(81.07% -0.021 0.0954) |
| OKLCH | oklch(81.07% 0.098 102.4) |
| XYZ | xyz(48.3079, 53.8164, 25.6085) |
| Luminance | 0.5382 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Darkkhaki
#BDB76B
ΔE00 3.68
Sand (survey)
#E2CA76
ΔE00 4.97
Greenish Beige
#C9D179
ΔE00 5.37
Greenish Tan
#BCCB7A
ΔE00 6.50
Sand
#C2B280
ΔE00 7.12
Sandy
#F1DA7A
ΔE00 7.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CDC478 #7881CD
analogous
#CD9978 #CDC478 #ABCD78
triadic
#CDC478 #78CDC4 #C478CD
tetradic
#CDC478 #78CD99 #7881CD #CD78AB
square
#CDC478 #78CD99 #7881CD #CD78AB
split-complementary
#CDC478 #78ABCD #9978CD
monochromatic
#948A37 #BCB04B #CDC478 #DED8A5 #EEEBD1
Accessibility & contrast
On white
1.79
#CDC478 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.76
#CDC478 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CDC478
11.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CDC478 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CDC478 | 1.00 | 1.79 | 11.76 | 11.76 |
| #FFFFFF | 1.79 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.76 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.76 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D1BF72
Deuteranopia (green-blind)
#D4C47B
Tritanopia (blue-blind)
#D9BAB1
Achromatopsia (no color)
#C2C2C2
Design tokens & code
CSS
--color: #cdc478; /* rgb */ color: rgb(205, 196, 120); /* oklch */ color: oklch(81.1% 0.098 102.4);
Tailwind
colors: {
custom: {
50: '#ddd5a0',
500: '#cdc478',
950: '#000000',
},
}SCSS
$custom: #cdc478; $custom-light: #ddd5a0; $custom-dark: #000000;
JSON
{
"hex": "#cdc478",
"rgb": {
"r": 205,
"g": 196,
"b": 120
},
"hsl": {
"h": 53.647,
"s": 45.946,
"l": 63.725
},
"oklch": {
"l": 0.81073,
"c": 0.09765,
"h": 102.4
},
"luminance": 0.53815
}Semantic roles & 50–950 ramp
primary
#CDC478
secondary
#4F579A
accent
#3BB92C
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140F
muted
#848380