#D4E797#D4E797

#D4E797 is a very light, moderate yellow-green. Relative luminance 0.734; OKLCH L 89.5% C 0.105 H 119.4°. Best body text is #000000 at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#D4E797
RGBrgb(212, 231, 151)
HSLhsl(74, 63%, 75%)
HSVhsv(74, 35%, 91%)
CMYKcmyk(8.2%, 0%, 34.6%, 9.4%)
CIE-LABlab(88.63, -18.97, 36.91)
CIE-LCHlch(88.63, 41.50, 117.20°)
OKLaboklab(89.53% -0.0515 0.0913)
OKLCHoklch(89.53% 0.105 119.4)
XYZxyz(61.3131, 73.3834, 40.2065)
Luminance0.7338 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4E797 #AA97E7
analogous
#E7D297 #D4E797 #ACE797
triadic
#D4E797 #97D4E7 #E797D4
tetradic
#D4E797 #97E7D2 #AA97E7 #E797AC
square
#D4E797 #97E7D2 #AA97E7 #E797AC
split-complementary
#D4E797 #97ACE7 #D297E7
monochromatic
#ABD034 #BFDC65 #D4E797 #E9F2C9 #F5F9E6

Accessibility & contrast

On white

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

On black

15.68
#D4E797 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4E797
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4E797#FFFFFF#000000##000000
##D4E7971.001.3415.6815.68
#FFFFFF1.341.0021.0021.00
#00000015.6821.001.001.00
##00000015.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#F1DF91
Deuteranopia (green-blind)
#EEDF9B
Tritanopia (blue-blind)
#DBDFD3
Achromatopsia (no color)
#DEDEDE

Design tokens & code

CSS
--color: #d4e797;
/* rgb */ color: rgb(212, 231, 151);
/* oklch */ color: oklch(89.5% 0.105 119.4);
Tailwind
colors: {
  custom: {
    50: '#e2eeb6',
    500: '#d4e797',
    950: '#000000',
  },
}
SCSS
$custom: #d4e797;
$custom-light: #e2eeb6;
$custom-dark: #000000;
JSON
{
  "hex": "#d4e797",
  "rgb": {
    "r": 212,
    "g": 231,
    "b": 151
  },
  "hsl": {
    "h": 74.25,
    "s": 62.5,
    "l": 74.902
  },
  "oklch": {
    "l": 0.8953,
    "c": 0.10484,
    "h": 119.4
  },
  "luminance": 0.73383
}

Semantic roles & 50–950 ramp

primary
#D4E797
secondary
#7861C1
accent
#1BCA45
background
#FEFFFD
surface
#FCFEF8
border
#D5D6D1
text
#151611
muted
#848581

Preview Lab

Preview with #D4E797

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

Preview Lab → · Contrast checker → · Palette generator →

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