#CDC795#CDC795
#CDC795 is a very light, moderate yellow. Relative luminance 0.560; OKLCH L 82.2% C 0.067 H 102.0°. Best body text is #000000 at 12.20:1 contrast (WCAG AA passes).
Color values
| HEX | #CDC795 |
|---|---|
| RGB | rgb(205, 199, 149) |
| HSL | hsl(54, 36%, 69%) |
| HSV | hsv(54, 27%, 80%) |
| CMYK | cmyk(0%, 2.9%, 27.3%, 19.6%) |
| CIE-LAB | lab(79.61, -5.75, 25.85) |
| CIE-LCH | lch(79.61, 26.49, 102.55°) |
| OKLab | oklab(82.22% -0.0138 0.0651) |
| OKLCH | oklch(82.22% 0.067 102) |
| XYZ | xyz(51.0253, 55.9969, 36.5485) |
| Luminance | 0.5600 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Beige (survey)
#E6DAA6
ΔE00 5.20
Sand
#C2B280
ΔE00 6.11
Darkkhaki
#BDB76B
ΔE00 7.10
Vanilla
#F3E5AB
ΔE00 7.82
Palegoldenrod
#EEE8AA
ΔE00 7.91
Greenish Tan
#BCCB7A
ΔE00 8.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CDC795 #959BCD
analogous
#CDAB95 #CDC795 #B7CD95
triadic
#CDC795 #95CDC7 #C795CD
tetradic
#CDC795 #95CDAB #959BCD #CD95B7
square
#CDC795 #95CDAB #959BCD #CD95B7
split-complementary
#CDC795 #95B7CD #AB95CD
monochromatic
#9D944A #B9B16B #CDC795 #E1DDBF #F4F3E8
Accessibility & contrast
On white
1.72
#CDC795 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
12.20
#CDC795 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CDC795
12.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CDC795 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CDC795 | 1.00 | 1.72 | 12.20 | 12.20 |
| #FFFFFF | 1.72 | 1.00 | 21.00 | 21.00 |
| #000000 | 12.20 | 21.00 | 1.00 | 1.00 |
| ##000000 | 12.20 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D0C392
Deuteranopia (green-blind)
#D2C797
Tritanopia (blue-blind)
#D6C0BA
Achromatopsia (no color)
#C5C5C5
Design tokens & code
CSS
--color: #cdc795; /* rgb */ color: rgb(205, 199, 149); /* oklch */ color: oklch(82.2% 0.067 102.0);
Tailwind
colors: {
custom: {
50: '#ddd7b4',
500: '#cdc795',
950: '#000000',
},
}SCSS
$custom: #cdc795; $custom-light: #ddd7b4; $custom-dark: #000000;
JSON
{
"hex": "#cdc795",
"rgb": {
"r": 205,
"g": 199,
"b": 149
},
"hsl": {
"h": 53.571,
"s": 35.897,
"l": 69.412
},
"oklch": {
"l": 0.82222,
"c": 0.06658,
"h": 102
},
"luminance": 0.55996
}Semantic roles & 50–950 ramp
primary
#CDC795
secondary
#646BA2
accent
#44AF37
background
#FEFEFD
surface
#FCFBF8
border
#D5D4D1
text
#151411
muted
#848381