#DEF796#DEF796

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

Color values

HEX#DEF796
RGBrgb(222, 247, 150)
HSLhsl(75, 86%, 78%)
HSVhsv(75, 39%, 97%)
CMYKcmyk(10.1%, 0%, 39.3%, 3.1%)
CIE-LABlab(93.56, -23.11, 43.91)
CIE-LCHlch(93.56, 49.62, 117.76°)
OKLaboklab(93.64% -0.0636 0.1073)
OKLCHoklch(93.64% 0.125 120.7)
XYZxyz(68.8900, 84.2532, 41.4815)
Luminance0.8425 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEF796 #AF96F7
analogous
#F7E096 #DEF796 #ADF796
triadic
#DEF796 #96DEF7 #F796DE
tetradic
#DEF796 #96F7E0 #AF96F7 #F796AD
square
#DEF796 #96F7E0 #AF96F7 #F796AD
split-complementary
#DEF796 #96ADF7 #E096F7
monochromatic
#BAEE24 #CCF35D #DEF796 #F0FBCF #F6FDE3

Accessibility & contrast

On white

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

On black

17.85
#DEF796 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEF796
17.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEF796#FFFFFF#000000##000000
##DEF7961.001.1817.8517.85
#FFFFFF1.181.0021.0021.00
#00000017.8521.001.001.00
##00000017.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED8F
Deuteranopia (green-blind)
#FFED9B
Tritanopia (blue-blind)
#E6EEDF
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #def796;
/* rgb */ color: rgb(222, 247, 150);
/* oklch */ color: oklch(93.6% 0.125 120.7);
Tailwind
colors: {
  custom: {
    50: '#e9f9b6',
    500: '#def796',
    950: '#000000',
  },
}
SCSS
$custom: #def796;
$custom-light: #e9f9b6;
$custom-dark: #000000;
JSON
{
  "hex": "#def796",
  "rgb": {
    "r": 222,
    "g": 247,
    "b": 150
  },
  "hsl": {
    "h": 75.464,
    "s": 85.841,
    "l": 77.843
  },
  "oklch": {
    "l": 0.93638,
    "c": 0.12476,
    "h": 120.7
  },
  "luminance": 0.84253
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #DEF796

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

Preview Lab → · Contrast checker → · Palette generator →

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