#D2E987#D2E987

#D2E987 is a very light, vivid yellow-green. Relative luminance 0.737; OKLCH L 89.6% C 0.126 H 119.8°. Best body text is #000000 at 15.75:1 contrast (WCAG AA passes).

Color values

HEX#D2E987
RGBrgb(210, 233, 135)
HSLhsl(74, 69%, 72%)
HSVhsv(74, 42%, 91%)
CMYKcmyk(9.9%, 0%, 42.1%, 8.6%)
CIE-LABlab(88.79, -22.57, 45.02)
CIE-LCHlch(88.79, 50.36, 116.62°)
OKLaboklab(89.55% -0.0626 0.1092)
OKLCHoklch(89.55% 0.126 119.8)
XYZxyz(60.0906, 73.7289, 33.9824)
Luminance0.7373 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2E987 #9E87E9
analogous
#E9CF87 #D2E987 #A1E987
triadic
#D2E987 #87D2E9 #E987D2
tetradic
#D2E987 #87E9CF #9E87E9 #E987A1
square
#D2E987 #87E9CF #9E87E9 #E987A1
split-complementary
#D2E987 #87A1E9 #CF87E9
monochromatic
#A8D026 #BFE053 #D2E987 #E5F2BB #F5FAE5

Accessibility & contrast

On white

1.33
#D2E987 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.75
#D2E987 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2E987
15.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2E987#FFFFFF#000000##000000
##D2E9871.001.3315.7515.75
#FFFFFF1.331.0021.0021.00
#00000015.7521.001.001.00
##00000015.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#F4DF7F
Deuteranopia (green-blind)
#F1DF8C
Tritanopia (blue-blind)
#DAE0D1
Achromatopsia (no color)
#DFDFDF

Design tokens & code

CSS
--color: #d2e987;
/* rgb */ color: rgb(210, 233, 135);
/* oklch */ color: oklch(89.6% 0.126 119.8);
Tailwind
colors: {
  custom: {
    50: '#e1f0ab',
    500: '#d2e987',
    950: '#000000',
  },
}
SCSS
$custom: #d2e987;
$custom-light: #e1f0ab;
$custom-dark: #000000;
JSON
{
  "hex": "#d2e987",
  "rgb": {
    "r": 210,
    "g": 233,
    "b": 135
  },
  "hsl": {
    "h": 74.082,
    "s": 69.014,
    "l": 72.157
  },
  "oklch": {
    "l": 0.89551,
    "c": 0.12586,
    "h": 119.8
  },
  "luminance": 0.73729
}

Semantic roles & 50–950 ramp

primary
#D2E987
secondary
#6C52C3
accent
#15D141
background
#FEFFFD
surface
#FCFEF7
border
#D5D6D0
text
#151610
muted
#848581

Preview Lab

Preview with #D2E987

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

Preview Lab → · Contrast checker → · Palette generator →

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