#CDC962#CDC962
#CDC962 is a light, vivid yellow. Relative luminance 0.556; OKLCH L 81.8% C 0.126 H 106.9°. Best body text is #000000 at 12.13:1 contrast (WCAG AA passes).
Color values
| HEX | #CDC962 |
|---|---|
| RGB | rgb(205, 201, 98) |
| HSL | hsl(58, 52%, 59%) |
| HSV | hsv(58, 52%, 80%) |
| CMYK | cmyk(0%, 2%, 52.2%, 19.6%) |
| CIE-LAB | lab(79.41, -12.32, 51.28) |
| CIE-LCH | lch(79.41, 52.74, 103.51°) |
| OKLab | oklab(81.82% -0.0365 0.1204) |
| OKLCH | oklch(81.82% 0.126 106.9) |
| XYZ | xyz(48.2694, 55.6356, 19.7490) |
| Luminance | 0.5563 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Greenish Beige
#C9D179
ΔE00 4.50
Darkkhaki
#BDB76B
ΔE00 5.94
Sand (survey)
#E2CA76
ΔE00 6.49
Greenish Tan
#BCCB7A
ΔE00 6.55
Vomit Yellow
#C7C10C
ΔE00 6.85
Puke Yellow
#C2BE0E
ΔE00 6.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CDC962 #6266CD
analogous
#CD9462 #CDC962 #9CCD62
triadic
#CDC962 #62CDC9 #C962CD
tetradic
#CDC962 #62CD94 #6266CD #CD629C
square
#CDC962 #62CD94 #6266CD #CD629C
split-complementary
#CDC962 #629CCD #9462CD
monochromatic
#89852C #B7B33A #CDC962 #DCD990 #EBE9BF
Accessibility & contrast
On white
1.73
#CDC962 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
12.13
#CDC962 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CDC962
12.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CDC962 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CDC962 | 1.00 | 1.73 | 12.13 | 12.13 |
| #FFFFFF | 1.73 | 1.00 | 21.00 | 21.00 |
| #000000 | 12.13 | 21.00 | 1.00 | 1.00 |
| ##000000 | 12.13 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D7C258
Deuteranopia (green-blind)
#DAC767
Tritanopia (blue-blind)
#DABEB2
Achromatopsia (no color)
#C5C5C5
Design tokens & code
CSS
--color: #cdc962; /* rgb */ color: rgb(205, 201, 98); /* oklch */ color: oklch(81.8% 0.126 106.9);
Tailwind
colors: {
custom: {
50: '#ded991',
500: '#cdc962',
950: '#000000',
},
}SCSS
$custom: #cdc962; $custom-light: #ded991; $custom-dark: #000000;
JSON
{
"hex": "#cdc962",
"rgb": {
"r": 205,
"g": 201,
"b": 98
},
"hsl": {
"h": 57.757,
"s": 51.691,
"l": 59.412
},
"oklch": {
"l": 0.81819,
"c": 0.12578,
"h": 106.9
},
"luminance": 0.55634
}Semantic roles & 50–950 ramp
primary
#CDC962
secondary
#434690
accent
#52DB4D
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F