#DEF797#DEF797

#DEF797 is a very light, vivid yellow-green. Relative luminance 0.843; OKLCH L 93.7% C 0.124 H 120.7°. Best body text is #000000 at 17.86:1 contrast (WCAG AA passes).

Color values

HEX#DEF797
RGBrgb(222, 247, 151)
HSLhsl(76, 86%, 78%)
HSVhsv(76, 39%, 97%)
CMYKcmyk(10.1%, 0%, 38.9%, 3.1%)
CIE-LABlab(93.57, -22.99, 43.44)
CIE-LCHlch(93.57, 49.15, 117.89°)
OKLaboklab(93.65% -0.0632 0.1063)
OKLCHoklch(93.65% 0.124 120.7)
XYZxyz(68.9708, 84.2856, 41.9074)
Luminance0.8428 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEF797 #B097F7
analogous
#F7E097 #DEF797 #AEF797
triadic
#DEF797 #97DEF7 #F797DE
tetradic
#DEF797 #97F7E0 #B097F7 #F797AE
square
#DEF797 #97F7E0 #B097F7 #F797AE
split-complementary
#DEF797 #97AEF7 #E097F7
monochromatic
#BAEE25 #CCF35E #DEF797 #F0FBD0 #F6FDE3

Accessibility & contrast

On white

1.18
#DEF797 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.86
#DEF797 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEF797
17.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEF797#FFFFFF#000000##000000
##DEF7971.001.1817.8617.86
#FFFFFF1.181.0021.0021.00
#00000017.8621.001.001.00
##00000017.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED90
Deuteranopia (green-blind)
#FFED9C
Tritanopia (blue-blind)
#E6EEDF
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #def797;
/* rgb */ color: rgb(222, 247, 151);
/* oklch */ color: oklch(93.7% 0.124 120.7);
Tailwind
colors: {
  custom: {
    50: '#e9f9b7',
    500: '#def797',
    950: '#000000',
  },
}
SCSS
$custom: #def797;
$custom-light: #e9f9b7;
$custom-dark: #000000;
JSON
{
  "hex": "#def797",
  "rgb": {
    "r": 222,
    "g": 247,
    "b": 151
  },
  "hsl": {
    "h": 75.625,
    "s": 85.714,
    "l": 78.039
  },
  "oklch": {
    "l": 0.93654,
    "c": 0.12368,
    "h": 120.7
  },
  "luminance": 0.84285
}

Semantic roles & 50–950 ramp

primary
#DEF797
secondary
#7C5CD6
accent
#03E23D
background
#FEFFFD
surface
#FDFFF8
border
#D5D7D1
text
#161711
muted
#848581

Preview Lab

Preview with #DEF797

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

Preview Lab → · Contrast checker → · Palette generator →

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