#D2F797#D2F797

#D2F797 is a very light, vivid yellow-green. Relative luminance 0.825; OKLCH L 92.8% C 0.128 H 126.0°. Best body text is #000000 at 17.49:1 contrast (WCAG AA passes).

Color values

HEX#D2F797
RGBrgb(210, 247, 151)
HSLhsl(83, 86%, 78%)
HSVhsv(83, 39%, 97%)
CMYKcmyk(15%, 0%, 38.9%, 3.1%)
CIE-LABlab(92.78, -27.39, 42.26)
CIE-LCHlch(92.78, 50.36, 122.95°)
OKLaboklab(92.81% -0.0752 0.1037)
OKLCHoklch(92.81% 0.128 126)
XYZxyz(65.4245, 82.4570, 41.7412)
Luminance0.8246 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2F797 #BC97F7
analogous
#F7EC97 #D2F797 #A2F797
triadic
#D2F797 #97D2F7 #F797D2
tetradic
#D2F797 #97F7EC #BC97F7 #F797A2
square
#D2F797 #97F7EC #BC97F7 #F797A2
split-complementary
#D2F797 #97A2F7 #EC97F7
monochromatic
#A1EE25 #B9F35E #D2F797 #EBFBD0 #F3FDE3

Accessibility & contrast

On white

1.20
#D2F797 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.49
#D2F797 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2F797
17.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2F797#FFFFFF#000000##000000
##D2F7971.001.2017.4917.49
#FFFFFF1.201.0021.0021.00
#00000017.4921.001.001.00
##00000017.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC90
Deuteranopia (green-blind)
#FBEA9C
Tritanopia (blue-blind)
#D7EFDF
Achromatopsia (no color)
#EAEAEA

Design tokens & code

CSS
--color: #d2f797;
/* rgb */ color: rgb(210, 247, 151);
/* oklch */ color: oklch(92.8% 0.128 126.0);
Tailwind
colors: {
  custom: {
    50: '#e1fab7',
    500: '#d2f797',
    950: '#000000',
  },
}
SCSS
$custom: #d2f797;
$custom-light: #e1fab7;
$custom-dark: #000000;
JSON
{
  "hex": "#d2f797",
  "rgb": {
    "r": 210,
    "g": 247,
    "b": 151
  },
  "hsl": {
    "h": 83.125,
    "s": 85.714,
    "l": 78.039
  },
  "oklch": {
    "l": 0.92813,
    "c": 0.12807,
    "h": 126
  },
  "luminance": 0.82458
}

Semantic roles & 50–950 ramp

primary
#D2F797
secondary
#8B5CD6
accent
#03E259
background
#FEFFFD
surface
#FCFFF8
border
#D5D7D1
text
#151711
muted
#848581

Preview Lab

Preview with #D2F797

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

Preview Lab → · Contrast checker → · Palette generator →

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