#CDC158#CDC158
#CDC158 is a light, vivid yellow. Relative luminance 0.518; OKLCH L 80.0% C 0.127 H 102.8°. Best body text is #000000 at 11.36:1 contrast (WCAG AA passes).
Color values
| HEX | #CDC158 |
|---|---|
| RGB | rgb(205, 193, 88) |
| HSL | hsl(54, 54%, 57%) |
| HSV | hsv(54, 57%, 80%) |
| CMYK | cmyk(0%, 5.9%, 57.1%, 19.6%) |
| CIE-LAB | lab(77.18, -9.03, 53.36) |
| CIE-LCH | lch(77.18, 54.12, 99.61°) |
| OKLab | oklab(80.01% -0.0282 0.1238) |
| OKLCH | oklch(80.01% 0.127 102.8) |
| XYZ | xyz(46.0098, 51.8253, 16.8103) |
| Luminance | 0.5182 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Darkkhaki
#BDB76B
ΔE00 5.47
Sand (survey)
#E2CA76
ΔE00 5.62
Puke Yellow
#C2BE0E
ΔE00 5.97
Vomit Yellow
#C7C10C
ΔE00 5.99
Olive Yellow
#C2B709
ΔE00 6.06
Dirty Yellow
#CDC50A
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CDC158 #5864CD
analogous
#CD8658 #CDC158 #9FCD58
triadic
#CDC158 #58CDC1 #C158CD
tetradic
#CDC158 #58CD86 #5864CD #CD589F
square
#CDC158 #58CD86 #5864CD #CD589F
split-complementary
#CDC158 #589FCD #8658CD
monochromatic
#837A27 #B2A635 #CDC158 #DBD287 #E9E4B6
Accessibility & contrast
On white
1.85
#CDC158 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.36
#CDC158 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CDC158
11.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CDC158 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CDC158 | 1.00 | 1.85 | 11.36 | 11.36 |
| #FFFFFF | 1.85 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.36 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.36 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D1BB4D
Deuteranopia (green-blind)
#D4C15D
Tritanopia (blue-blind)
#DBB5AA
Achromatopsia (no color)
#BFBFBF
Design tokens & code
CSS
--color: #cdc158; /* rgb */ color: rgb(205, 193, 88); /* oklch */ color: oklch(80.0% 0.127 102.8);
Tailwind
colors: {
custom: {
50: '#dfd38b',
500: '#cdc158',
950: '#000000',
},
}SCSS
$custom: #cdc158; $custom-light: #dfd38b; $custom-dark: #000000;
JSON
{
"hex": "#cdc158",
"rgb": {
"r": 205,
"g": 193,
"b": 88
},
"hsl": {
"h": 53.846,
"s": 53.917,
"l": 57.451
},
"oklch": {
"l": 0.80013,
"c": 0.12693,
"h": 102.8
},
"luminance": 0.51824
}Semantic roles & 50–950 ramp
primary
#CDC158
secondary
#3F468B
accent
#5ADD4B
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140C
muted
#84837F