#D8CD97#D8CD97
#D8CD97 is a very light, moderate yellow. Relative luminance 0.605; OKLCH L 84.4% C 0.072 H 98.0°. Best body text is #000000 at 13.10:1 contrast (WCAG AA passes).
Color values
| HEX | #D8CD97 |
|---|---|
| RGB | rgb(216, 205, 151) |
| HSL | hsl(50, 45%, 72%) |
| HSV | hsv(50, 30%, 85%) |
| CMYK | cmyk(0%, 5.1%, 30.1%, 15.3%) |
| CIE-LAB | lab(82.11, -4.37, 28.32) |
| CIE-LCH | lch(82.11, 28.66, 98.77°) |
| OKLab | oklab(84.42% -0.01 0.0711) |
| OKLCH | oklch(84.42% 0.072 98) |
| XYZ | xyz(55.7366, 60.4973, 38.0132) |
| Luminance | 0.6050 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Beige (survey)
#E6DAA6
ΔE00 3.21
Vanilla
#F3E5AB
ΔE00 5.71
Palegoldenrod
#EEE8AA
ΔE00 6.30
Sand (survey)
#E2CA76
ΔE00 6.63
Sand
#C2B280
ΔE00 6.96
Wheat
#F5DEB3
ΔE00 7.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D8CD97 #97A2D8
analogous
#D8AD97 #D8CD97 #C3D897
triadic
#D8CD97 #97D8CD #CD97D8
tetradic
#D8CD97 #97D8AD #97A2D8 #D897C3
square
#D8CD97 #97D8AD #97A2D8 #D897C3
split-complementary
#D8CD97 #97C3D8 #AD97D8
monochromatic
#B29F43 #C7B86A #D8CD97 #E9E2C4 #F7F4E9
Accessibility & contrast
On white
1.60
#D8CD97 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
13.10
#D8CD97 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D8CD97
13.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D8CD97 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D8CD97 | 1.00 | 1.60 | 13.10 | 13.10 |
| #FFFFFF | 1.60 | 1.00 | 21.00 | 21.00 |
| #000000 | 13.10 | 21.00 | 1.00 | 1.00 |
| ##000000 | 13.10 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D8CA93
Deuteranopia (green-blind)
#DBCE99
Tritanopia (blue-blind)
#E2C5BF
Achromatopsia (no color)
#CCCCCC
Design tokens & code
CSS
--color: #d8cd97; /* rgb */ color: rgb(216, 205, 151); /* oklch */ color: oklch(84.4% 0.072 98.0);
Tailwind
colors: {
custom: {
50: '#e5dcb6',
500: '#d8cd97',
950: '#000000',
},
}SCSS
$custom: #d8cd97; $custom-light: #e5dcb6; $custom-dark: #000000;
JSON
{
"hex": "#d8cd97",
"rgb": {
"r": 216,
"g": 205,
"b": 151
},
"hsl": {
"h": 49.846,
"s": 45.455,
"l": 71.961
},
"oklch": {
"l": 0.84424,
"c": 0.07175,
"h": 98
},
"luminance": 0.60496
}Semantic roles & 50–950 ramp
primary
#D8CD97
secondary
#6471AF
accent
#45B92D
background
#FEFEFD
surface
#FCFBF8
border
#D5D4D1
text
#161511
muted
#848481