#CDC456#CDC456
#CDC456 is a light, vivid yellow. Relative luminance 0.531; OKLCH L 80.6% C 0.132 H 104.6°. Best body text is #000000 at 11.63:1 contrast (WCAG AA passes).
Color values
| HEX | #CDC456 |
|---|---|
| RGB | rgb(205, 196, 86) |
| HSL | hsl(55, 54%, 57%) |
| HSV | hsv(55, 58%, 80%) |
| CMYK | cmyk(0%, 4.4%, 58%, 19.6%) |
| CIE-LAB | lab(77.95, -10.71, 55.14) |
| CIE-LCH | lch(77.95, 56.17, 101.00°) |
| OKLab | oklab(80.62% -0.0332 0.1273) |
| OKLCH | oklch(80.62% 0.132 104.6) |
| XYZ | xyz(46.5980, 53.1325, 16.6033) |
| Luminance | 0.5313 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit Yellow
#C7C10C
ΔE00 5.43
Puke Yellow
#C2BE0E
ΔE00 5.47
Dirty Yellow
#CDC50A
ΔE00 5.64
Olive Yellow
#C2B709
ΔE00 5.99
Ugly Yellow
#D0C101
ΔE00 5.99
Darkkhaki
#BDB76B
ΔE00 6.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CDC456 #565FCD
analogous
#CD8956 #CDC456 #9BCD56
triadic
#CDC456 #56CDC4 #C456CD
tetradic
#CDC456 #56CD89 #565FCD #CD569B
square
#CDC456 #56CD89 #565FCD #CD569B
split-complementary
#CDC456 #569BCD #8956CD
monochromatic
#827B26 #B1A834 #CDC456 #DBD485 #E9E5B4
Accessibility & contrast
On white
1.81
#CDC456 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.63
#CDC456 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CDC456
11.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CDC456 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CDC456 | 1.00 | 1.81 | 11.63 | 11.63 |
| #FFFFFF | 1.81 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.63 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.63 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D4BE4A
Deuteranopia (green-blind)
#D7C35C
Tritanopia (blue-blind)
#DBB8AC
Achromatopsia (no color)
#C1C1C1
Design tokens & code
CSS
--color: #cdc456; /* rgb */ color: rgb(205, 196, 86); /* oklch */ color: oklch(80.6% 0.132 104.6);
Tailwind
colors: {
custom: {
50: '#dfd58a',
500: '#cdc456',
950: '#000000',
},
}SCSS
$custom: #cdc456; $custom-light: #dfd58a; $custom-dark: #000000;
JSON
{
"hex": "#cdc456",
"rgb": {
"r": 205,
"g": 196,
"b": 86
},
"hsl": {
"h": 55.462,
"s": 54.338,
"l": 57.059
},
"oklch": {
"l": 0.80624,
"c": 0.13159,
"h": 104.6
},
"luminance": 0.53131
}Semantic roles & 50–950 ramp
primary
#CDC456
secondary
#3E4389
accent
#55DE4A
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F