#D2EC97#D2EC97

#D2EC97 is a very light, moderate yellow-green. Relative luminance 0.759; OKLCH L 90.5% C 0.112 H 122.5°. Best body text is #000000 at 16.19:1 contrast (WCAG AA passes).

Color values

HEX#D2EC97
RGBrgb(210, 236, 151)
HSLhsl(78, 69%, 76%)
HSVhsv(78, 36%, 93%)
CMYKcmyk(11%, 0%, 36%, 7.5%)
CIE-LABlab(89.83, -22.14, 38.44)
CIE-LCHlch(89.83, 44.36, 119.94°)
OKLaboklab(90.45% -0.0604 0.0949)
OKLCHoklch(90.45% 0.112 122.5)
XYZxyz(62.1594, 75.9268, 40.6528)
Luminance0.7593 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2EC97 #B197EC
analogous
#ECDB97 #D2EC97 #A7EC97
triadic
#D2EC97 #97D2EC #EC97D2
tetradic
#D2EC97 #97ECDB #B197EC #EC97A7
square
#D2EC97 #97ECDB #B197EC #EC97A7
split-complementary
#D2EC97 #97A7EC #DB97EC
monochromatic
#A5D930 #BCE363 #D2EC97 #E8F5CB #F4FAE5

Accessibility & contrast

On white

1.30
#D2EC97 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.19
#D2EC97 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2EC97
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2EC97#FFFFFF#000000##000000
##D2EC971.001.3016.1916.19
#FFFFFF1.301.0021.0021.00
#00000016.1921.001.001.00
##00000016.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#F6E291
Deuteranopia (green-blind)
#F2E29B
Tritanopia (blue-blind)
#D8E4D7
Achromatopsia (no color)
#E2E2E2

Design tokens & code

CSS
--color: #d2ec97;
/* rgb */ color: rgb(210, 236, 151);
/* oklch */ color: oklch(90.5% 0.112 122.5);
Tailwind
colors: {
  custom: {
    50: '#e1f2b6',
    500: '#d2ec97',
    950: '#000000',
  },
}
SCSS
$custom: #d2ec97;
$custom-light: #e1f2b6;
$custom-dark: #000000;
JSON
{
  "hex": "#d2ec97",
  "rgb": {
    "r": 210,
    "g": 236,
    "b": 151
  },
  "hsl": {
    "h": 78.353,
    "s": 69.106,
    "l": 75.882
  },
  "oklch": {
    "l": 0.9045,
    "c": 0.11248,
    "h": 122.5
  },
  "luminance": 0.75927
}

Semantic roles & 50–950 ramp

primary
#D2EC97
secondary
#7F60C8
accent
#14D14E
background
#FEFFFD
surface
#FCFEF8
border
#D5D6D1
text
#151611
muted
#848581

Preview Lab

Preview with #D2EC97

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

Preview Lab → · Contrast checker → · Palette generator →

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