#D4C87F#D4C87F
#D4C87F is a very light, moderate yellow. Relative luminance 0.568; OKLCH L 82.6% C 0.094 H 100.1°. Best body text is #000000 at 12.37:1 contrast (WCAG AA passes).
Color values
| HEX | #D4C87F |
|---|---|
| RGB | rgb(212, 200, 127) |
| HSL | hsl(52, 50%, 66%) |
| HSV | hsv(52, 40%, 83%) |
| CMYK | cmyk(0%, 5.7%, 40.1%, 16.9%) |
| CIE-LAB | lab(80.09, -6.19, 38.00) |
| CIE-LCH | lch(80.09, 38.50, 99.25°) |
| OKLab | oklab(82.62% -0.0165 0.0929) |
| OKLCH | oklch(82.62% 0.094 100.1) |
| XYZ | xyz(51.6374, 56.8394, 28.3256) |
| Luminance | 0.5684 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Sand (survey)
#E2CA76
ΔE00 3.97
Darkkhaki
#BDB76B
ΔE00 5.11
Greenish Beige
#C9D179
ΔE00 5.99
Beige (survey)
#E6DAA6
ΔE00 6.39
Sandy
#F1DA7A
ΔE00 6.48
Sand
#C2B280
ΔE00 7.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D4C87F #7F8BD4
analogous
#D49E7F #D4C87F #B6D47F
triadic
#D4C87F #7FD4C8 #C87FD4
tetradic
#D4C87F #7FD49E #7F8BD4 #D47FB6
square
#D4C87F #7FD49E #7F8BD4 #D47FB6
split-complementary
#D4C87F #7FB6D4 #9E7FD4
monochromatic
#A29336 #C5B451 #D4C87F #E3DCAD #F3EFDB
Accessibility & contrast
On white
1.70
#D4C87F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
12.37
#D4C87F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D4C87F
12.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D4C87F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D4C87F | 1.00 | 1.70 | 12.37 | 12.37 |
| #FFFFFF | 1.70 | 1.00 | 21.00 | 21.00 |
| #000000 | 12.37 | 21.00 | 1.00 | 1.00 |
| ##000000 | 12.37 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D5C47A
Deuteranopia (green-blind)
#D9C982
Tritanopia (blue-blind)
#E0BEB6
Achromatopsia (no color)
#C7C7C7
Design tokens & code
CSS
--color: #d4c87f; /* rgb */ color: rgb(212, 200, 127); /* oklch */ color: oklch(82.6% 0.094 100.1);
Tailwind
colors: {
custom: {
50: '#e2d8a5',
500: '#d4c87f',
950: '#000000',
},
}SCSS
$custom: #d4c87f; $custom-light: #e2d8a5; $custom-dark: #000000;
JSON
{
"hex": "#d4c87f",
"rgb": {
"r": 212,
"g": 200,
"b": 127
},
"hsl": {
"h": 51.529,
"s": 49.708,
"l": 66.471
},
"oklch": {
"l": 0.82621,
"c": 0.0943,
"h": 100.1
},
"luminance": 0.56838
}Semantic roles & 50–950 ramp
primary
#D4C87F
secondary
#515DA7
accent
#3DBD28
background
#FEFEFC
surface
#FCFBF6
border
#D5D4D0
text
#16140F
muted
#848380