#D9F987#D9F987

#D9F987 is a very light, vivid yellow-green. Relative luminance 0.843; OKLCH L 93.5% C 0.145 H 122.1°. Best body text is #000000 at 17.85:1 contrast (WCAG AA passes).

Color values

HEX#D9F987
RGBrgb(217, 249, 135)
HSLhsl(77, 90%, 75%)
HSVhsv(77, 46%, 98%)
CMYKcmyk(12.9%, 0%, 45.8%, 2.4%)
CIE-LABlab(93.56, -27.55, 51.04)
CIE-LCHlch(93.56, 58.00, 118.36°)
OKLaboklab(93.49% -0.077 0.1226)
OKLCHoklch(93.49% 0.145 122.1)
XYZxyz(66.8643, 84.2523, 35.6567)
Luminance0.8425 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9F987 #A787F9
analogous
#F9E087 #D9F987 #A0F987
triadic
#D9F987 #87D9F9 #F987D9
tetradic
#D9F987 #87F9E0 #A787F9 #F987A0
square
#D9F987 #87F9E0 #A787F9 #F987A0
split-complementary
#D9F987 #87A0F9 #E087F9
monochromatic
#B4F312 #C7F64D #D9F987 #EBFCC1 #F6FEE2

Accessibility & contrast

On white

1.18
#D9F987 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.85
#D9F987 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9F987
17.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9F987#FFFFFF#000000##000000
##D9F9871.001.1817.8517.85
#FFFFFF1.181.0021.0021.00
#00000017.8521.001.001.00
##00000017.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED7D
Deuteranopia (green-blind)
#FFED8D
Tritanopia (blue-blind)
#E1EFDE
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #d9f987;
/* rgb */ color: rgb(217, 249, 135);
/* oklch */ color: oklch(93.5% 0.145 122.1);
Tailwind
colors: {
  custom: {
    50: '#e6fbac',
    500: '#d9f987',
    950: '#000000',
  },
}
SCSS
$custom: #d9f987;
$custom-light: #e6fbac;
$custom-dark: #000000;
JSON
{
  "hex": "#d9f987",
  "rgb": {
    "r": 217,
    "g": 249,
    "b": 135
  },
  "hsl": {
    "h": 76.842,
    "s": 90.476,
    "l": 75.294
  },
  "oklch": {
    "l": 0.93489,
    "c": 0.14479,
    "h": 122.1
  },
  "luminance": 0.84252
}

Semantic roles & 50–950 ramp

primary
#D9F987
secondary
#744DD7
accent
#00E640
background
#FEFFFD
surface
#FDFFF7
border
#D5D7D0
text
#161710
muted
#848581

Preview Lab

Preview with #D9F987

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

Preview Lab → · Contrast checker → · Palette generator →

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