#D9D87F#D9D87F

#D9D87F is a very light, moderate yellow. Relative luminance 0.654; OKLCH L 86.4% C 0.112 H 108.0°. Best body text is #000000 at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#D9D87F
RGBrgb(217, 216, 127)
HSLhsl(59, 54%, 67%)
HSVhsv(59, 41%, 85%)
CMYKcmyk(0%, 0.5%, 41.5%, 14.9%)
CIE-LABlab(84.69, -12.35, 43.90)
CIE-LCHlch(84.69, 45.60, 105.71°)
OKLaboklab(86.37% -0.0344 0.1062)
OKLCHoklch(86.37% 0.112 108)
XYZxyz(57.0028, 65.3970, 29.6946)
Luminance0.6540 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9D87F #7F80D9
analogous
#D9AB7F #D9D87F #ADD97F
triadic
#D9D87F #7FD9D8 #D87FD9
tetradic
#D9D87F #7FD9AB #7F80D9 #D97FAD
square
#D9D87F #7FD9AB #7F80D9 #D97FAD
split-complementary
#D9D87F #7FADD9 #AB7FD9
monochromatic
#ABAA33 #CBCA50 #D9D87F #E7E6AE #F5F5DD

Accessibility & contrast

On white

1.49
#D9D87F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.08
#D9D87F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9D87F
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9D87F#FFFFFF#000000##000000
##D9D87F1.001.4914.0814.08
#FFFFFF1.491.0021.0021.00
#00000014.0821.001.001.00
##00000014.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5D178
Deuteranopia (green-blind)
#E7D583
Tritanopia (blue-blind)
#E5CEC2
Achromatopsia (no color)
#D3D3D3

Design tokens & code

CSS
--color: #d9d87f;
/* rgb */ color: rgb(217, 216, 127);
/* oklch */ color: oklch(86.4% 0.112 108.0);
Tailwind
colors: {
  custom: {
    50: '#e6e3a5',
    500: '#d9d87f',
    950: '#000000',
  },
}
SCSS
$custom: #d9d87f;
$custom-light: #e6e3a5;
$custom-dark: #000000;
JSON
{
  "hex": "#d9d87f",
  "rgb": {
    "r": 217,
    "g": 216,
    "b": 127
  },
  "hsl": {
    "h": 59.333,
    "s": 54.217,
    "l": 67.451
  },
  "oklch": {
    "l": 0.86369,
    "c": 0.11163,
    "h": 108
  },
  "luminance": 0.65396
}

Semantic roles & 50–950 ramp

primary
#D9D87F
secondary
#4E4FAE
accent
#26C224
background
#FEFEFC
surface
#FDFCF6
border
#D5D5D0
text
#16150F
muted
#848480

Preview Lab

Preview with #D9D87F

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

Preview Lab → · Contrast checker → · Palette generator →

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