#D2E797#D2E797

#D2E797 is a very light, moderate yellow-green. Relative luminance 0.731; OKLCH L 89.4% C 0.105 H 120.5°. Best body text is #000000 at 15.62:1 contrast (WCAG AA passes).

Color values

HEX#D2E797
RGBrgb(210, 231, 151)
HSLhsl(76, 63%, 75%)
HSVhsv(76, 35%, 91%)
CMYKcmyk(9.1%, 0%, 34.6%, 9.4%)
CIE-LABlab(88.49, -19.71, 36.70)
CIE-LCHlch(88.49, 41.66, 118.24°)
OKLaboklab(89.38% -0.0536 0.0908)
OKLCHoklch(89.38% 0.105 120.5)
XYZxyz(60.7400, 73.0879, 40.1797)
Luminance0.7309 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2E797 #AC97E7
analogous
#E7D497 #D2E797 #AAE797
triadic
#D2E797 #97D2E7 #E797D2
tetradic
#D2E797 #97E7D4 #AC97E7 #E797AA
square
#D2E797 #97E7D4 #AC97E7 #E797AA
split-complementary
#D2E797 #97AAE7 #D497E7
monochromatic
#A7D034 #BCDC65 #D2E797 #E8F2C9 #F4F9E6

Accessibility & contrast

On white

1.34
#D2E797 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.62
#D2E797 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2E797
15.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2E797#FFFFFF#000000##000000
##D2E7971.001.3415.6215.62
#FFFFFF1.341.0021.0021.00
#00000015.6221.001.001.00
##00000015.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#F1DE91
Deuteranopia (green-blind)
#EEDE9B
Tritanopia (blue-blind)
#D9DFD3
Achromatopsia (no color)
#DEDEDE

Design tokens & code

CSS
--color: #d2e797;
/* rgb */ color: rgb(210, 231, 151);
/* oklch */ color: oklch(89.4% 0.105 120.5);
Tailwind
colors: {
  custom: {
    50: '#e0eeb6',
    500: '#d2e797',
    950: '#000000',
  },
}
SCSS
$custom: #d2e797;
$custom-light: #e0eeb6;
$custom-dark: #000000;
JSON
{
  "hex": "#d2e797",
  "rgb": {
    "r": 210,
    "g": 231,
    "b": 151
  },
  "hsl": {
    "h": 75.75,
    "s": 62.5,
    "l": 74.902
  },
  "oklch": {
    "l": 0.89382,
    "c": 0.10544,
    "h": 120.5
  },
  "luminance": 0.73088
}

Semantic roles & 50–950 ramp

primary
#D2E797
secondary
#7A61C1
accent
#1BCA49
background
#FEFFFD
surface
#FCFEF8
border
#D5D6D1
text
#151611
muted
#848581

Preview Lab

Preview with #D2E797

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

Preview Lab → · Contrast checker → · Palette generator →

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