#CDC156#CDC156
#CDC156 is a light, vivid yellow. Relative luminance 0.518; OKLCH L 80.0% C 0.129 H 102.9°. Best body text is #000000 at 11.36:1 contrast (WCAG AA passes).
Color values
| HEX | #CDC156 |
|---|---|
| RGB | rgb(205, 193, 86) |
| HSL | hsl(54, 54%, 57%) |
| HSV | hsv(54, 58%, 80%) |
| CMYK | cmyk(0%, 5.9%, 58%, 19.6%) |
| CIE-LAB | lab(77.16, -9.18, 54.25) |
| CIE-LCH | lch(77.16, 55.02, 99.60°) |
| OKLab | oklab(79.99% -0.0288 0.1254) |
| OKLCH | oklch(79.99% 0.129 102.9) |
| XYZ | xyz(45.9281, 51.7926, 16.3800) |
| Luminance | 0.5179 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Darkkhaki
#BDB76B
ΔE00 5.67
Puke Yellow
#C2BE0E
ΔE00 5.73
Vomit Yellow
#C7C10C
ΔE00 5.73
Sand (survey)
#E2CA76
ΔE00 5.78
Olive Yellow
#C2B709
ΔE00 5.83
Dirty Yellow
#CDC50A
ΔE00 5.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CDC156 #5662CD
analogous
#CD8656 #CDC156 #9DCD56
triadic
#CDC156 #56CDC1 #C156CD
tetradic
#CDC156 #56CD86 #5662CD #CD569D
square
#CDC156 #56CD86 #5662CD #CD569D
split-complementary
#CDC156 #569DCD #8656CD
monochromatic
#827926 #B1A534 #CDC156 #DBD285 #E9E4B4
Accessibility & contrast
On white
1.85
#CDC156 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.36
#CDC156 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CDC156
11.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CDC156 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CDC156 | 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)
#D1BB4B
Deuteranopia (green-blind)
#D5C15C
Tritanopia (blue-blind)
#DBB5AA
Achromatopsia (no color)
#BEBEBE
Design tokens & code
CSS
--color: #cdc156; /* rgb */ color: rgb(205, 193, 86); /* oklch */ color: oklch(80.0% 0.129 102.9);
Tailwind
colors: {
custom: {
50: '#dfd389',
500: '#cdc156',
950: '#000000',
},
}SCSS
$custom: #cdc156; $custom-light: #dfd389; $custom-dark: #000000;
JSON
{
"hex": "#cdc156",
"rgb": {
"r": 205,
"g": 193,
"b": 86
},
"hsl": {
"h": 53.95,
"s": 54.338,
"l": 57.059
},
"oklch": {
"l": 0.79991,
"c": 0.1287,
"h": 102.9
},
"luminance": 0.51791
}Semantic roles & 50–950 ramp
primary
#CDC156
secondary
#3E4589
accent
#59DE4A
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F