#D2D87F#D2D87F
#D2D87F is a very light, moderate yellow. Relative luminance 0.643; OKLCH L 85.8% C 0.113 H 111.9°. Best body text is #000000 at 13.87:1 contrast (WCAG AA passes).
Color values
| HEX | #D2D87F |
|---|---|
| RGB | rgb(210, 216, 127) |
| HSL | hsl(64, 53%, 67%) |
| HSV | hsv(64, 41%, 85%) |
| CMYK | cmyk(2.8%, 0%, 41.2%, 15.3%) |
| CIE-LAB | lab(84.15, -15.09, 43.11) |
| CIE-LCH | lch(84.15, 45.67, 109.30°) |
| OKLab | oklab(85.8% -0.042 0.1045) |
| OKLCH | oklch(85.8% 0.113 111.9) |
| XYZ | xyz(54.9656, 64.3466, 29.5991) |
| Luminance | 0.6435 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Greenish Beige
#C9D179
ΔE00 1.84
Greenish Tan
#BCCB7A
ΔE00 4.50
Pale Olive
#B9CC81
ΔE00 5.57
Khaki (CSS)
#F0E68C
ΔE00 5.72
Light Khaki
#E6F2A2
ΔE00 6.20
Pale Olive Green
#B1D27B
ΔE00 6.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D2D87F #857FD8
analogous
#D8B27F #D2D87F #A6D87F
triadic
#D2D87F #7FD2D8 #D87FD2
tetradic
#D2D87F #7FD8B2 #857FD8 #D87FA6
square
#D2D87F #7FD8B2 #857FD8 #D87FA6
split-complementary
#D2D87F #7FA6D8 #B27FD8
monochromatic
#A1A934 #C2CA50 #D2D87F #E2E6AE #F3F5DD
Accessibility & contrast
On white
1.51
#D2D87F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
13.87
#D2D87F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D2D87F
13.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D2D87F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D2D87F | 1.00 | 1.51 | 13.87 | 13.87 |
| #FFFFFF | 1.51 | 1.00 | 21.00 | 21.00 |
| #000000 | 13.87 | 21.00 | 1.00 | 1.00 |
| ##000000 | 13.87 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#E4D178
Deuteranopia (green-blind)
#E4D383
Tritanopia (blue-blind)
#DCCEC2
Achromatopsia (no color)
#D2D2D2
Design tokens & code
CSS
--color: #d2d87f; /* rgb */ color: rgb(210, 216, 127); /* oklch */ color: oklch(85.8% 0.113 111.9);
Tailwind
colors: {
custom: {
50: '#e1e4a5',
500: '#d2d87f',
950: '#000000',
},
}SCSS
$custom: #d2d87f; $custom-light: #e1e4a5; $custom-dark: #000000;
JSON
{
"hex": "#d2d87f",
"rgb": {
"r": 210,
"g": 216,
"b": 127
},
"hsl": {
"h": 64.045,
"s": 53.293,
"l": 67.255
},
"oklch": {
"l": 0.85804,
"c": 0.11257,
"h": 111.9
},
"luminance": 0.64346
}Semantic roles & 50–950 ramp
primary
#D2D87F
secondary
#554FAC
accent
#25C12F
background
#FEFEFC
surface
#FCFCF6
border
#D5D5D0
text
#15150F
muted
#848480