#D8D987#D8D987

#D8D987 is a very light, moderate yellow. Relative luminance 0.660; OKLCH L 86.6% C 0.104 H 109.0°. Best body text is #000000 at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#D8D987
RGBrgb(216, 217, 135)
HSLhsl(61, 52%, 69%)
HSVhsv(61, 38%, 85%)
CMYKcmyk(0.5%, 0%, 37.8%, 14.9%)
CIE-LABlab(84.98, -12.38, 40.28)
CIE-LCHlch(84.98, 42.14, 107.09°)
OKLaboklab(86.62% -0.0339 0.0984)
OKLCHoklch(86.62% 0.104 109)
XYZxyz(57.5056, 65.9750, 32.6221)
Luminance0.6597 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D987 #8887D9
analogous
#D9B187 #D8D987 #AFD987
triadic
#D8D987 #87D8D9 #D987D8
tetradic
#D8D987 #87D9B1 #8887D9 #D987AF
square
#D8D987 #87D9B1 #8887D9 #D987AF
split-complementary
#D8D987 #87AFD9 #B187D9
monochromatic
#ADAE37 #C9CA59 #D8D987 #E7E8B5 #F6F6E4

Accessibility & contrast

On white

1.48
#D8D987 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.19
#D8D987 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D987
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D987#FFFFFF#000000##000000
##D8D9871.001.4814.1914.19
#FFFFFF1.481.0021.0021.00
#00000014.1921.001.001.00
##00000014.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5D381
Deuteranopia (green-blind)
#E6D68B
Tritanopia (blue-blind)
#E3D0C5
Achromatopsia (no color)
#D4D4D4

Design tokens & code

CSS
--color: #d8d987;
/* rgb */ color: rgb(216, 217, 135);
/* oklch */ color: oklch(86.6% 0.104 109.0);
Tailwind
colors: {
  custom: {
    50: '#e5e4ab',
    500: '#d8d987',
    950: '#000000',
  },
}
SCSS
$custom: #d8d987;
$custom-light: #e5e4ab;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d987",
  "rgb": {
    "r": 216,
    "g": 217,
    "b": 135
  },
  "hsl": {
    "h": 60.732,
    "s": 51.899,
    "l": 69.02
  },
  "oklch": {
    "l": 0.86621,
    "c": 0.10408,
    "h": 109
  },
  "luminance": 0.65974
}

Semantic roles & 50–950 ramp

primary
#D8D987
secondary
#5655AF
accent
#26BF28
background
#FEFEFD
surface
#FCFCF7
border
#D5D5D0
text
#161510
muted
#848481

Preview Lab

Preview with #D8D987

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

Preview Lab → · Contrast checker → · Palette generator →

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