#D8F987#D8F987

#D8F987 is a very light, vivid yellow-green. Relative luminance 0.841; OKLCH L 93.4% C 0.145 H 122.5°. Best body text is #000000 at 17.82:1 contrast (WCAG AA passes).

Color values

HEX#D8F987
RGBrgb(216, 249, 135)
HSLhsl(77, 90%, 75%)
HSVhsv(77, 46%, 98%)
CMYKcmyk(13.3%, 0%, 45.8%, 2.4%)
CIE-LABlab(93.49, -27.93, 50.94)
CIE-LCHlch(93.49, 58.10, 118.73°)
OKLaboklab(93.42% -0.078 0.1224)
OKLCHoklch(93.42% 0.145 122.5)
XYZxyz(66.5679, 84.0994, 35.6428)
Luminance0.8410 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8F987 #A887F9
analogous
#F9E187 #D8F987 #9FF987
triadic
#D8F987 #87D8F9 #F987D8
tetradic
#D8F987 #87F9E1 #A887F9 #F9879F
square
#D8F987 #87F9E1 #A887F9 #F9879F
split-complementary
#D8F987 #879FF9 #E187F9
monochromatic
#B2F312 #C5F64D #D8F987 #EBFCC1 #F6FEE2

Accessibility & contrast

On white

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

On black

17.82
#D8F987 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8F987
17.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8F987#FFFFFF#000000##000000
##D8F9871.001.1817.8217.82
#FFFFFF1.181.0021.0021.00
#00000017.8221.001.001.00
##00000017.8221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d8f987;
/* rgb */ color: rgb(216, 249, 135);
/* oklch */ color: oklch(93.4% 0.145 122.5);
Tailwind
colors: {
  custom: {
    50: '#e6fbac',
    500: '#d8f987',
    950: '#000000',
  },
}
SCSS
$custom: #d8f987;
$custom-light: #e6fbac;
$custom-dark: #000000;
JSON
{
  "hex": "#d8f987",
  "rgb": {
    "r": 216,
    "g": 249,
    "b": 135
  },
  "hsl": {
    "h": 77.368,
    "s": 90.476,
    "l": 75.294
  },
  "oklch": {
    "l": 0.93419,
    "c": 0.14515,
    "h": 122.5
  },
  "luminance": 0.841
}

Semantic roles & 50–950 ramp

primary
#D8F987
secondary
#754DD7
accent
#00E642
background
#FEFFFD
surface
#FDFFF7
border
#D5D7D0
text
#161710
muted
#848581

Preview Lab

Preview with #D8F987

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

Preview Lab → · Contrast checker → · Palette generator →

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