#CDC786#CDC786
#CDC786 is a light, moderate yellow. Relative luminance 0.555; OKLCH L 81.9% C 0.085 H 103.6°. Best body text is #000000 at 12.11:1 contrast (WCAG AA passes).
Color values
| HEX | #CDC786 |
|---|---|
| RGB | rgb(205, 199, 134) |
| HSL | hsl(55, 42%, 66%) |
| HSV | hsv(55, 35%, 80%) |
| CMYK | cmyk(0%, 2.9%, 34.6%, 19.6%) |
| CIE-LAB | lab(79.36, -7.65, 33.34) |
| CIE-LCH | lch(79.36, 34.21, 102.92°) |
| OKLab | oklab(81.94% -0.0199 0.0825) |
| OKLCH | oklch(81.94% 0.085 103.6) |
| XYZ | xyz(49.9039, 55.5483, 30.6427) |
| Luminance | 0.5555 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Darkkhaki
#BDB76B
ΔE00 4.86
Greenish Beige
#C9D179
ΔE00 5.50
Greenish Tan
#BCCB7A
ΔE00 6.09
Beige (survey)
#E6DAA6
ΔE00 6.16
Sand (survey)
#E2CA76
ΔE00 6.30
Sand
#C2B280
ΔE00 6.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CDC786 #868CCD
analogous
#CDA486 #CDC786 #B0CD86
triadic
#CDC786 #86CDC7 #C786CD
tetradic
#CDC786 #86CDA4 #868CCD #CD86B0
square
#CDC786 #86CDA4 #868CCD #CD86B0
split-complementary
#CDC786 #86B0CD #A486CD
monochromatic
#99923F #BBB35B #CDC786 #DFDBB1 #F1EFDD
Accessibility & contrast
On white
1.73
#CDC786 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
12.11
#CDC786 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CDC786
12.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CDC786 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CDC786 | 1.00 | 1.73 | 12.11 | 12.11 |
| #FFFFFF | 1.73 | 1.00 | 21.00 | 21.00 |
| #000000 | 12.11 | 21.00 | 1.00 | 1.00 |
| ##000000 | 12.11 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D2C381
Deuteranopia (green-blind)
#D4C689
Tritanopia (blue-blind)
#D7BFB6
Achromatopsia (no color)
#C5C5C5
Design tokens & code
CSS
--color: #cdc786; /* rgb */ color: rgb(205, 199, 134); /* oklch */ color: oklch(81.9% 0.085 103.6);
Tailwind
colors: {
custom: {
50: '#ddd7aa',
500: '#cdc786',
950: '#000000',
},
}SCSS
$custom: #cdc786; $custom-light: #ddd7aa; $custom-dark: #000000;
JSON
{
"hex": "#cdc786",
"rgb": {
"r": 205,
"g": 199,
"b": 134
},
"hsl": {
"h": 54.93,
"s": 41.52,
"l": 66.471
},
"oklch": {
"l": 0.81936,
"c": 0.08484,
"h": 103.6
},
"luminance": 0.55547
}Semantic roles & 50–950 ramp
primary
#CDC786
secondary
#585EA0
accent
#3CB531
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381