#D7C166#D7C166
#D7C166 is a light, moderate yellow. Relative luminance 0.535; OKLCH L 81.1% C 0.114 H 96.0°. Best body text is #000000 at 11.71:1 contrast (WCAG AA passes).
Color values
| HEX | #D7C166 |
|---|---|
| RGB | rgb(215, 193, 102) |
| HSL | hsl(48, 59%, 62%) |
| HSV | hsv(48, 53%, 84%) |
| CMYK | cmyk(0%, 10.2%, 52.6%, 15.7%) |
| CIE-LAB | lab(78.20, -3.76, 48.16) |
| CIE-LCH | lch(78.20, 48.31, 94.47°) |
| OKLab | oklab(81.08% -0.0121 0.1138) |
| OKLCH | oklch(81.08% 0.114 96) |
| XYZ | xyz(49.4943, 53.5484, 20.2966) |
| Luminance | 0.5355 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Sand (survey)
#E2CA76
ΔE00 2.75
Sandy
#F1DA7A
ΔE00 6.03
Desert
#CCAD60
ΔE00 6.11
Darkkhaki
#BDB76B
ΔE00 6.15
Tan (survey)
#D1B26F
ΔE00 6.34
Maize
#F4D054
ΔE00 6.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D7C166 #667CD7
analogous
#D78966 #D7C166 #B4D766
triadic
#D7C166 #66D7C1 #C166D7
tetradic
#D7C166 #66D789 #667CD7 #D766B4
square
#D7C166 #66D789 #667CD7 #D766B4
split-complementary
#D7C166 #66B4D7 #8966D7
monochromatic
#9A8428 #CAAD35 #D7C166 #E4D597 #F0E8C7
Accessibility & contrast
On white
1.79
#D7C166 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.71
#D7C166 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D7C166
11.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D7C166 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D7C166 | 1.00 | 1.79 | 11.71 | 11.71 |
| #FFFFFF | 1.79 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.71 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.71 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D1BD5E
Deuteranopia (green-blind)
#D7C56A
Tritanopia (blue-blind)
#E6B5AC
Achromatopsia (no color)
#C1C1C1
Design tokens & code
CSS
--color: #d7c166; /* rgb */ color: rgb(215, 193, 102); /* oklch */ color: oklch(81.1% 0.114 96.0);
Tailwind
colors: {
custom: {
50: '#e6d394',
500: '#d7c166',
950: '#000000',
},
}SCSS
$custom: #d7c166; $custom-light: #e6d394; $custom-dark: #000000;
JSON
{
"hex": "#d7c166",
"rgb": {
"r": 215,
"g": 193,
"b": 102
},
"hsl": {
"h": 48.319,
"s": 58.549,
"l": 62.157
},
"oklch": {
"l": 0.81079,
"c": 0.11444,
"h": 96
},
"luminance": 0.53546
}Semantic roles & 50–950 ramp
primary
#D7C166
secondary
#42549F
accent
#40C61F
background
#FEFEFC
surface
#FDFBF4
border
#D5D4CE
text
#16140D
muted
#84837F