#D8C170#D8C170
#D8C170 is a light, moderate yellow. Relative luminance 0.539; OKLCH L 81.3% C 0.105 H 94.0°. Best body text is #000000 at 11.78:1 contrast (WCAG AA passes).
Color values
| HEX | #D8C170 |
|---|---|
| RGB | rgb(216, 193, 112) |
| HSL | hsl(47, 57%, 64%) |
| HSV | hsv(47, 48%, 85%) |
| CMYK | cmyk(0%, 10.6%, 48.1%, 15.3%) |
| CIE-LAB | lab(78.41, -2.46, 43.52) |
| CIE-LCH | lch(78.41, 43.59, 93.24°) |
| OKLab | oklab(81.31% -0.0073 0.1044) |
| OKLCH | oklch(81.31% 0.105 94) |
| XYZ | xyz(50.3151, 53.9108, 23.0816) |
| Luminance | 0.5391 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Sand (survey)
#E2CA76
ΔE00 2.30
Tan (survey)
#D1B26F
ΔE00 5.19
Desert
#CCAD60
ΔE00 5.56
Darkkhaki
#BDB76B
ΔE00 6.12
Sandy
#F1DA7A
ΔE00 6.28
Sandstone
#C9AE74
ΔE00 6.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D8C170 #7087D8
analogous
#D88D70 #D8C170 #BBD870
triadic
#D8C170 #70D8C1 #C170D8
tetradic
#D8C170 #70D88D #7087D8 #D870BB
square
#D8C170 #70D88D #7087D8 #D870BB
split-complementary
#D8C170 #70BBD8 #8D70D8
monochromatic
#A2882C #CBAC40 #D8C170 #E5D6A0 #F2EBD0
Accessibility & contrast
On white
1.78
#D8C170 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.78
#D8C170 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D8C170
11.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D8C170 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D8C170 | 1.00 | 1.78 | 11.78 | 11.78 |
| #FFFFFF | 1.78 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.78 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.78 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D0BE69
Deuteranopia (green-blind)
#D6C573
Tritanopia (blue-blind)
#E6B6AE
Achromatopsia (no color)
#C2C2C2
Design tokens & code
CSS
--color: #d8c170; /* rgb */ color: rgb(216, 193, 112); /* oklch */ color: oklch(81.3% 0.105 94.0);
Tailwind
colors: {
custom: {
50: '#e6d39a',
500: '#d8c170',
950: '#000000',
},
}SCSS
$custom: #d8c170; $custom-light: #e6d39a; $custom-dark: #000000;
JSON
{
"hex": "#d8c170",
"rgb": {
"r": 216,
"g": 193,
"b": 112
},
"hsl": {
"h": 46.731,
"s": 57.143,
"l": 64.314
},
"oklch": {
"l": 0.81308,
"c": 0.10463,
"h": 94
},
"luminance": 0.53909
}Semantic roles & 50–950 ramp
primary
#D8C170
secondary
#475CA5
accent
#45C521
background
#FEFEFC
surface
#FDFBF5
border
#D5D4CF
text
#16140E
muted
#84837F