#CDC562#CDC562
#CDC562 is a light, vivid yellow. Relative luminance 0.538; OKLCH L 81.0% C 0.122 H 104.6°. Best body text is #000000 at 11.76:1 contrast (WCAG AA passes).
Color values
| HEX | #CDC562 |
|---|---|
| RGB | rgb(205, 197, 98) |
| HSL | hsl(56, 52%, 59%) |
| HSV | hsv(56, 52%, 80%) |
| CMYK | cmyk(0%, 3.9%, 52.2%, 19.6%) |
| CIE-LAB | lab(78.34, -10.28, 50.04) |
| CIE-LCH | lch(78.34, 51.08, 101.61°) |
| OKLab | oklab(80.97% -0.0306 0.1177) |
| OKLCH | oklch(80.97% 0.122 104.6) |
| XYZ | xyz(47.3490, 53.7950, 19.4422) |
| Luminance | 0.5379 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Darkkhaki
#BDB76B
ΔE00 5.07
Greenish Beige
#C9D179
ΔE00 5.40
Sand (survey)
#E2CA76
ΔE00 5.61
Puke Yellow
#C2BE0E
ΔE00 6.92
Vomit Yellow
#C7C10C
ΔE00 6.93
Sandy
#F1DA7A
ΔE00 7.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CDC562 #626ACD
analogous
#CD9062 #CDC562 #A0CD62
triadic
#CDC562 #62CDC5 #C562CD
tetradic
#CDC562 #62CD90 #626ACD #CD62A0
square
#CDC562 #62CD90 #626ACD #CD62A0
split-complementary
#CDC562 #62A0CD #9062CD
monochromatic
#89822C #B7AE3A #CDC562 #DCD690 #EBE7BF
Accessibility & contrast
On white
1.79
#CDC562 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.76
#CDC562 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CDC562
11.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CDC562 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CDC562 | 1.00 | 1.79 | 11.76 | 11.76 |
| #FFFFFF | 1.79 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.76 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.76 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D4BF59
Deuteranopia (green-blind)
#D7C467
Tritanopia (blue-blind)
#DABAAF
Achromatopsia (no color)
#C2C2C2
Design tokens & code
CSS
--color: #cdc562; /* rgb */ color: rgb(205, 197, 98); /* oklch */ color: oklch(81.0% 0.122 104.6);
Tailwind
colors: {
custom: {
50: '#ded691',
500: '#cdc562',
950: '#000000',
},
}SCSS
$custom: #cdc562; $custom-light: #ded691; $custom-dark: #000000;
JSON
{
"hex": "#cdc562",
"rgb": {
"r": 205,
"g": 197,
"b": 98
},
"hsl": {
"h": 55.514,
"s": 51.691,
"l": 59.412
},
"oklch": {
"l": 0.80973,
"c": 0.12161,
"h": 104.6
},
"luminance": 0.53793
}Semantic roles & 50–950 ramp
primary
#CDC562
secondary
#434990
accent
#57DB4D
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F