#CDC862#CDC862
#CDC862 is a light, vivid yellow. Relative luminance 0.552; OKLCH L 81.6% C 0.125 H 106.3°. Best body text is #000000 at 12.03:1 contrast (WCAG AA passes).
Color values
| HEX | #CDC862 |
|---|---|
| RGB | rgb(205, 200, 98) |
| HSL | hsl(57, 52%, 59%) |
| HSV | hsv(57, 52%, 80%) |
| CMYK | cmyk(0%, 2.4%, 52.2%, 19.6%) |
| CIE-LAB | lab(79.14, -11.81, 50.97) |
| CIE-LCH | lch(79.14, 52.32, 103.05°) |
| OKLab | oklab(81.61% -0.035 0.1197) |
| OKLCH | oklch(81.61% 0.125 106.3) |
| XYZ | xyz(48.0370, 55.1709, 19.6715) |
| Luminance | 0.5517 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Greenish Beige
#C9D179
ΔE00 4.70
Darkkhaki
#BDB76B
ΔE00 5.71
Sand (survey)
#E2CA76
ΔE00 6.26
Greenish Tan
#BCCB7A
ΔE00 6.68
Vomit Yellow
#C7C10C
ΔE00 6.84
Puke Yellow
#C2BE0E
ΔE00 6.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CDC862 #6267CD
analogous
#CD9362 #CDC862 #9DCD62
triadic
#CDC862 #62CDC8 #C862CD
tetradic
#CDC862 #62CD93 #6267CD #CD629D
square
#CDC862 #62CD93 #6267CD #CD629D
split-complementary
#CDC862 #629DCD #9362CD
monochromatic
#89852C #B7B23A #CDC862 #DCD890 #EBE9BF
Accessibility & contrast
On white
1.75
#CDC862 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
12.03
#CDC862 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CDC862
12.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CDC862 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CDC862 | 1.00 | 1.75 | 12.03 | 12.03 |
| #FFFFFF | 1.75 | 1.00 | 21.00 | 21.00 |
| #000000 | 12.03 | 21.00 | 1.00 | 1.00 |
| ##000000 | 12.03 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D6C158
Deuteranopia (green-blind)
#D9C667
Tritanopia (blue-blind)
#DABDB1
Achromatopsia (no color)
#C4C4C4
Design tokens & code
CSS
--color: #cdc862; /* rgb */ color: rgb(205, 200, 98); /* oklch */ color: oklch(81.6% 0.125 106.3);
Tailwind
colors: {
custom: {
50: '#ded891',
500: '#cdc862',
950: '#000000',
},
}SCSS
$custom: #cdc862; $custom-light: #ded891; $custom-dark: #000000;
JSON
{
"hex": "#cdc862",
"rgb": {
"r": 205,
"g": 200,
"b": 98
},
"hsl": {
"h": 57.196,
"s": 51.691,
"l": 59.412
},
"oklch": {
"l": 0.81608,
"c": 0.12472,
"h": 106.3
},
"luminance": 0.5517
}Semantic roles & 50–950 ramp
primary
#CDC862
secondary
#434790
accent
#53DB4D
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F