#D2CD7F#D2CD7F
#D2CD7F is a very light, moderate yellow. Relative luminance 0.589; OKLCH L 83.5% C 0.100 H 105.2°. Best body text is #000000 at 12.78:1 contrast (WCAG AA passes).
Color values
| HEX | #D2CD7F |
|---|---|
| RGB | rgb(210, 205, 127) |
| HSL | hsl(56, 48%, 66%) |
| HSV | hsv(56, 40%, 82%) |
| CMYK | cmyk(0%, 2.4%, 39.5%, 17.6%) |
| CIE-LAB | lab(81.24, -9.55, 39.43) |
| CIE-LCH | lch(81.24, 40.57, 103.61°) |
| OKLab | oklab(83.49% -0.0261 0.0961) |
| OKLCH | oklch(83.49% 0.1 105.2) |
| XYZ | xyz(52.2413, 58.8978, 28.6910) |
| Luminance | 0.5890 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Greenish Beige
#C9D179
ΔE00 3.68
Greenish Tan
#BCCB7A
ΔE00 5.48
Sand (survey)
#E2CA76
ΔE00 5.58
Darkkhaki
#BDB76B
ΔE00 5.61
Khaki (CSS)
#F0E68C
ΔE00 6.31
Pale Olive
#B9CC81
ΔE00 6.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D2CD7F #7F84D2
analogous
#D2A37F #D2CD7F #ADD27F
triadic
#D2CD7F #7FD2CD #CD7FD2
tetradic
#D2CD7F #7FD2A3 #7F84D2 #D27FAD
square
#D2CD7F #7FD2A3 #7F84D2 #D27FAD
split-complementary
#D2CD7F #7FADD2 #A37FD2
monochromatic
#9F9938 #C2BB52 #D2CD7F #E2DFAC #F2F0DA
Accessibility & contrast
On white
1.64
#D2CD7F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
12.78
#D2CD7F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D2CD7F
12.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D2CD7F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D2CD7F | 1.00 | 1.64 | 12.78 | 12.78 |
| #FFFFFF | 1.64 | 1.00 | 21.00 | 21.00 |
| #000000 | 12.78 | 21.00 | 1.00 | 1.00 |
| ##000000 | 12.78 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D9C879
Deuteranopia (green-blind)
#DCCC82
Tritanopia (blue-blind)
#DDC4BA
Achromatopsia (no color)
#CACACA
Design tokens & code
CSS
--color: #d2cd7f; /* rgb */ color: rgb(210, 205, 127); /* oklch */ color: oklch(83.5% 0.100 105.2);
Tailwind
colors: {
custom: {
50: '#e1dca5',
500: '#d2cd7f',
950: '#000000',
},
}SCSS
$custom: #d2cd7f; $custom-light: #e1dca5; $custom-dark: #000000;
JSON
{
"hex": "#d2cd7f",
"rgb": {
"r": 210,
"g": 205,
"b": 127
},
"hsl": {
"h": 56.386,
"s": 47.977,
"l": 66.078
},
"oklch": {
"l": 0.8349,
"c": 0.0996,
"h": 105.2
},
"luminance": 0.58897
}Semantic roles & 50–950 ramp
primary
#D2CD7F
secondary
#5156A4
accent
#33BB2A
background
#FEFEFC
surface
#FCFBF6
border
#D5D4D0
text
#15150F
muted
#848480