#D9C87F#D9C87F

#D9C87F is a very light, moderate yellow. Relative luminance 0.576; OKLCH L 83.1% C 0.095 H 96.6°. Best body text is #000000 at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#D9C87F
RGBrgb(217, 200, 127)
HSLhsl(49, 54%, 67%)
HSVhsv(49, 41%, 85%)
CMYKcmyk(0%, 7.8%, 41.5%, 14.9%)
CIE-LABlab(80.51, -4.20, 38.62)
CIE-LCHlch(80.51, 38.85, 96.20°)
OKLaboklab(83.06% -0.011 0.0942)
OKLCHoklch(83.06% 0.095 96.6)
XYZxyz(53.1015, 57.5943, 28.3942)
Luminance0.5759 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C87F #7F90D9
analogous
#D99B7F #D9C87F #BDD97F
triadic
#D9C87F #7FD9C8 #C87FD9
tetradic
#D9C87F #7FD99B #7F90D9 #D97FBD
square
#D9C87F #7FD99B #7F90D9 #D97FBD
split-complementary
#D9C87F #7FBDD9 #9B7FD9
monochromatic
#AB9433 #CBB450 #D9C87F #E7DCAE #F5F1DD

Accessibility & contrast

On white

1.68
#D9C87F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.52
#D9C87F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C87F
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C87F#FFFFFF#000000##000000
##D9C87F1.001.6812.5212.52
#FFFFFF1.681.0021.0021.00
#00000012.5221.001.001.00
##00000012.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6C479
Deuteranopia (green-blind)
#DACA82
Tritanopia (blue-blind)
#E6BEB6
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #d9c87f;
/* rgb */ color: rgb(217, 200, 127);
/* oklch */ color: oklch(83.1% 0.095 96.6);
Tailwind
colors: {
  custom: {
    50: '#e6d8a5',
    500: '#d9c87f',
    950: '#000000',
  },
}
SCSS
$custom: #d9c87f;
$custom-light: #e6d8a5;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c87f",
  "rgb": {
    "r": 217,
    "g": 200,
    "b": 127
  },
  "hsl": {
    "h": 48.667,
    "s": 54.217,
    "l": 67.451
  },
  "oklch": {
    "l": 0.83058,
    "c": 0.09488,
    "h": 96.6
  },
  "luminance": 0.57593
}

Semantic roles & 50–950 ramp

primary
#D9C87F
secondary
#4E60AE
accent
#42C224
background
#FEFEFC
surface
#FDFBF6
border
#D5D4D0
text
#16140F
muted
#848380

Preview Lab

Preview with #D9C87F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#D9C87F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva