#CDC159#CDC159
#CDC159 is a light, vivid yellow. Relative luminance 0.518; OKLCH L 80.0% C 0.126 H 102.8°. Best body text is #000000 at 11.37:1 contrast (WCAG AA passes).
Color values
| HEX | #CDC159 |
|---|---|
| RGB | rgb(205, 193, 89) |
| HSL | hsl(54, 54%, 58%) |
| HSV | hsv(54, 57%, 80%) |
| CMYK | cmyk(0%, 5.9%, 56.6%, 19.6%) |
| CIE-LAB | lab(77.19, -8.96, 52.91) |
| CIE-LCH | lch(77.19, 53.66, 99.61°) |
| OKLab | oklab(80.03% -0.0278 0.1229) |
| OKLCH | oklch(80.03% 0.126 102.8) |
| XYZ | xyz(46.0515, 51.8420, 17.0300) |
| Luminance | 0.5184 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Darkkhaki
#BDB76B
ΔE00 5.36
Sand (survey)
#E2CA76
ΔE00 5.55
Puke Yellow
#C2BE0E
ΔE00 6.10
Vomit Yellow
#C7C10C
ΔE00 6.11
Olive Yellow
#C2B709
ΔE00 6.18
Dirty Yellow
#CDC50A
ΔE00 6.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CDC159 #5965CD
analogous
#CD8759 #CDC159 #9FCD59
triadic
#CDC159 #59CDC1 #C159CD
tetradic
#CDC159 #59CD87 #5965CD #CD599F
square
#CDC159 #59CD87 #5965CD #CD599F
split-complementary
#CDC159 #599FCD #8759CD
monochromatic
#847A28 #B3A636 #CDC159 #DBD388 #E9E4B7
Accessibility & contrast
On white
1.85
#CDC159 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.37
#CDC159 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CDC159
11.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CDC159 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CDC159 | 1.00 | 1.85 | 11.37 | 11.37 |
| #FFFFFF | 1.85 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.37 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.37 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D0BB4E
Deuteranopia (green-blind)
#D4C15E
Tritanopia (blue-blind)
#DBB5AA
Achromatopsia (no color)
#BFBFBF
Design tokens & code
CSS
--color: #cdc159; /* rgb */ color: rgb(205, 193, 89); /* oklch */ color: oklch(80.0% 0.126 102.8);
Tailwind
colors: {
custom: {
50: '#dfd38b',
500: '#cdc159',
950: '#000000',
},
}SCSS
$custom: #cdc159; $custom-light: #dfd38b; $custom-dark: #000000;
JSON
{
"hex": "#cdc159",
"rgb": {
"r": 205,
"g": 193,
"b": 89
},
"hsl": {
"h": 53.793,
"s": 53.704,
"l": 57.647
},
"oklch": {
"l": 0.80025,
"c": 0.12603,
"h": 102.8
},
"luminance": 0.5184
}Semantic roles & 50–950 ramp
primary
#CDC159
secondary
#3F478B
accent
#5ADD4B
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140C
muted
#84837F