#CDC866#CDC866
#CDC866 is a light, vivid yellow. Relative luminance 0.552; OKLCH L 81.7% C 0.121 H 106.2°. Best body text is #000000 at 12.05:1 contrast (WCAG AA passes).
Color values
| HEX | #CDC866 |
|---|---|
| RGB | rgb(205, 200, 102) |
| HSL | hsl(57, 51%, 60%) |
| HSV | hsv(57, 50%, 80%) |
| CMYK | cmyk(0%, 2.4%, 50.2%, 19.6%) |
| CIE-LAB | lab(79.18, -11.47, 49.13) |
| CIE-LCH | lch(79.18, 50.45, 103.14°) |
| OKLab | oklab(81.66% -0.0336 0.1161) |
| OKLCH | oklch(81.66% 0.121 106.2) |
| XYZ | xyz(48.2306, 55.2484, 20.6912) |
| Luminance | 0.5525 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Greenish Beige
#C9D179
ΔE00 4.38
Darkkhaki
#BDB76B
ΔE00 5.36
Sand (survey)
#E2CA76
ΔE00 6.05
Greenish Tan
#BCCB7A
ΔE00 6.34
Sandy
#F1DA7A
ΔE00 7.10
Dull Yellow
#EEDC5B
ΔE00 7.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CDC866 #666BCD
analogous
#CD9466 #CDC866 #9FCD66
triadic
#CDC866 #66CDC8 #C866CD
tetradic
#CDC866 #66CD94 #666BCD #CD669F
square
#CDC866 #66CD94 #666BCD #CD669F
split-complementary
#CDC866 #669FCD #9466CD
monochromatic
#8B872D #B9B33D #CDC866 #DCD994 #EBE9C2
Accessibility & contrast
On white
1.74
#CDC866 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
12.05
#CDC866 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CDC866
12.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CDC866 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CDC866 | 1.00 | 1.74 | 12.05 | 12.05 |
| #FFFFFF | 1.74 | 1.00 | 21.00 | 21.00 |
| #000000 | 12.05 | 21.00 | 1.00 | 1.00 |
| ##000000 | 12.05 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D6C25D
Deuteranopia (green-blind)
#D9C66B
Tritanopia (blue-blind)
#DABDB2
Achromatopsia (no color)
#C4C4C4
Design tokens & code
CSS
--color: #cdc866; /* rgb */ color: rgb(205, 200, 102); /* oklch */ color: oklch(81.7% 0.121 106.2);
Tailwind
colors: {
custom: {
50: '#ded894',
500: '#cdc866',
950: '#000000',
},
}SCSS
$custom: #cdc866; $custom-light: #ded894; $custom-dark: #000000;
JSON
{
"hex": "#cdc866",
"rgb": {
"r": 205,
"g": 200,
"b": 102
},
"hsl": {
"h": 57.087,
"s": 50.739,
"l": 60.196
},
"oklch": {
"l": 0.81657,
"c": 0.12084,
"h": 106.2
},
"luminance": 0.55247
}Semantic roles & 50–950 ramp
primary
#CDC866
secondary
#454992
accent
#2FBE27
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F