#CDC462#CDC462
#CDC462 is a light, vivid yellow. Relative luminance 0.533; OKLCH L 80.8% C 0.121 H 104.0°. Best body text is #000000 at 11.67:1 contrast (WCAG AA passes).
Color values
| HEX | #CDC462 |
|---|---|
| RGB | rgb(205, 196, 98) |
| HSL | hsl(55, 52%, 59%) |
| HSV | hsv(55, 52%, 80%) |
| CMYK | cmyk(0%, 4.4%, 52.2%, 19.6%) |
| CIE-LAB | lab(78.08, -9.77, 49.72) |
| CIE-LCH | lch(78.08, 50.68, 101.12°) |
| OKLab | oklab(80.76% -0.0292 0.117) |
| OKLCH | oklch(80.76% 0.121 104) |
| XYZ | xyz(47.1227, 53.3423, 19.3668) |
| Luminance | 0.5334 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Darkkhaki
#BDB76B
ΔE00 4.88
Sand (survey)
#E2CA76
ΔE00 5.41
Greenish Beige
#C9D179
ΔE00 5.66
Puke Yellow
#C2BE0E
ΔE00 6.98
Vomit Yellow
#C7C10C
ΔE00 7.00
Sandy
#F1DA7A
ΔE00 7.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CDC462 #626BCD
analogous
#CD8F62 #CDC462 #A1CD62
triadic
#CDC462 #62CDC4 #C462CD
tetradic
#CDC462 #62CD8F #626BCD #CD62A1
square
#CDC462 #62CD8F #626BCD #CD62A1
split-complementary
#CDC462 #62A1CD #8F62CD
monochromatic
#89812C #B7AD3A #CDC462 #DCD590 #EBE7BF
Accessibility & contrast
On white
1.80
#CDC462 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.67
#CDC462 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CDC462
11.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CDC462 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CDC462 | 1.00 | 1.80 | 11.67 | 11.67 |
| #FFFFFF | 1.80 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.67 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.67 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D3BE59
Deuteranopia (green-blind)
#D6C367
Tritanopia (blue-blind)
#DAB9AE
Achromatopsia (no color)
#C1C1C1
Design tokens & code
CSS
--color: #cdc462; /* rgb */ color: rgb(205, 196, 98); /* oklch */ color: oklch(80.8% 0.121 104.0);
Tailwind
colors: {
custom: {
50: '#ded591',
500: '#cdc462',
950: '#000000',
},
}SCSS
$custom: #cdc462; $custom-light: #ded591; $custom-dark: #000000;
JSON
{
"hex": "#cdc462",
"rgb": {
"r": 205,
"g": 196,
"b": 98
},
"hsl": {
"h": 54.953,
"s": 51.691,
"l": 59.412
},
"oklch": {
"l": 0.80763,
"c": 0.12059,
"h": 104
},
"luminance": 0.53341
}Semantic roles & 50–950 ramp
primary
#CDC462
secondary
#434A90
accent
#59DB4D
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F