#CDC157#CDC157
#CDC157 is a light, vivid yellow. Relative luminance 0.518; OKLCH L 80.0% C 0.128 H 102.9°. Best body text is #000000 at 11.36:1 contrast (WCAG AA passes).
Color values
| HEX | #CDC157 |
|---|---|
| RGB | rgb(205, 193, 87) |
| HSL | hsl(54, 54%, 57%) |
| HSV | hsv(54, 58%, 80%) |
| CMYK | cmyk(0%, 5.9%, 57.6%, 19.6%) |
| CIE-LAB | lab(77.17, -9.10, 53.80) |
| CIE-LCH | lch(77.17, 54.57, 99.61°) |
| OKLab | oklab(80% -0.0285 0.1246) |
| OKLCH | oklch(80% 0.128 102.9) |
| XYZ | xyz(45.9687, 51.8088, 16.5937) |
| Luminance | 0.5181 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Darkkhaki
#BDB76B
ΔE00 5.57
Sand (survey)
#E2CA76
ΔE00 5.70
Puke Yellow
#C2BE0E
ΔE00 5.85
Vomit Yellow
#C7C10C
ΔE00 5.86
Olive Yellow
#C2B709
ΔE00 5.94
Dirty Yellow
#CDC50A
ΔE00 6.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CDC157 #5763CD
analogous
#CD8657 #CDC157 #9ECD57
triadic
#CDC157 #57CDC1 #C157CD
tetradic
#CDC157 #57CD86 #5763CD #CD579E
square
#CDC157 #57CD86 #5763CD #CD579E
split-complementary
#CDC157 #579ECD #8657CD
monochromatic
#837927 #B2A535 #CDC157 #DBD286 #E9E4B5
Accessibility & contrast
On white
1.85
#CDC157 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.36
#CDC157 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CDC157
11.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CDC157 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CDC157 | 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)
#D1BB4C
Deuteranopia (green-blind)
#D4C15C
Tritanopia (blue-blind)
#DBB5AA
Achromatopsia (no color)
#BFBFBF
Design tokens & code
CSS
--color: #cdc157; /* rgb */ color: rgb(205, 193, 87); /* oklch */ color: oklch(80.0% 0.128 102.9);
Tailwind
colors: {
custom: {
50: '#dfd38a',
500: '#cdc157',
950: '#000000',
},
}SCSS
$custom: #cdc157; $custom-light: #dfd38a; $custom-dark: #000000;
JSON
{
"hex": "#cdc157",
"rgb": {
"r": 205,
"g": 193,
"b": 87
},
"hsl": {
"h": 53.898,
"s": 54.128,
"l": 57.255
},
"oklch": {
"l": 0.80002,
"c": 0.12782,
"h": 102.9
},
"luminance": 0.51807
}Semantic roles & 50–950 ramp
primary
#CDC157
secondary
#3E468A
accent
#59DD4A
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F