#CDC796#CDC796
#CDC796 is a very light, moderate yellow. Relative luminance 0.560; OKLCH L 82.2% C 0.065 H 101.9°. Best body text is #000000 at 12.21:1 contrast (WCAG AA passes).
Color values
| HEX | #CDC796 |
|---|---|
| RGB | rgb(205, 199, 150) |
| HSL | hsl(53, 35%, 70%) |
| HSV | hsv(53, 27%, 80%) |
| CMYK | cmyk(0%, 2.9%, 26.8%, 19.6%) |
| CIE-LAB | lab(79.63, -5.62, 25.35) |
| CIE-LCH | lch(79.63, 25.97, 102.50°) |
| OKLab | oklab(82.24% -0.0134 0.064) |
| OKLCH | oklch(82.24% 0.065 101.9) |
| XYZ | xyz(51.1055, 56.0290, 36.9707) |
| Luminance | 0.5603 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Beige (survey)
#E6DAA6
ΔE00 5.20
Sand
#C2B280
ΔE00 6.12
Darkkhaki
#BDB76B
ΔE00 7.29
Vanilla
#F3E5AB
ΔE00 7.86
Palegoldenrod
#EEE8AA
ΔE00 7.97
Putty
#BEAE8A
ΔE00 8.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CDC796 #969CCD
analogous
#CDAC96 #CDC796 #B7CD96
triadic
#CDC796 #96CDC7 #C796CD
tetradic
#CDC796 #96CDAC #969CCD #CD96B7
square
#CDC796 #96CDAC #969CCD #CD96B7
split-complementary
#CDC796 #96B7CD #AC96CD
monochromatic
#9E954B #B9B16D #CDC796 #E1DDBF #F4F3E9
Accessibility & contrast
On white
1.72
#CDC796 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
12.21
#CDC796 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CDC796
12.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CDC796 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CDC796 | 1.00 | 1.72 | 12.21 | 12.21 |
| #FFFFFF | 1.72 | 1.00 | 21.00 | 21.00 |
| #000000 | 12.21 | 21.00 | 1.00 | 1.00 |
| ##000000 | 12.21 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D0C493
Deuteranopia (green-blind)
#D2C798
Tritanopia (blue-blind)
#D5C0BA
Achromatopsia (no color)
#C5C5C5
Design tokens & code
CSS
--color: #cdc796; /* rgb */ color: rgb(205, 199, 150); /* oklch */ color: oklch(82.2% 0.065 101.9);
Tailwind
colors: {
custom: {
50: '#ddd7b5',
500: '#cdc796',
950: '#000000',
},
}SCSS
$custom: #cdc796; $custom-light: #ddd7b5; $custom-dark: #000000;
JSON
{
"hex": "#cdc796",
"rgb": {
"r": 205,
"g": 199,
"b": 150
},
"hsl": {
"h": 53.455,
"s": 35.484,
"l": 69.608
},
"oklch": {
"l": 0.82243,
"c": 0.06534,
"h": 101.9
},
"luminance": 0.56028
}Semantic roles & 50–950 ramp
primary
#CDC796
secondary
#656CA2
accent
#44AE37
background
#FEFEFD
surface
#FCFBF8
border
#D5D4D1
text
#151411
muted
#848381