#DEF896#DEF896

#DEF896 is a very light, vivid yellow-green. Relative luminance 0.849; OKLCH L 93.8% C 0.126 H 121.0°. Best body text is #000000 at 17.97:1 contrast (WCAG AA passes).

Color values

HEX#DEF896
RGBrgb(222, 248, 150)
HSLhsl(76, 88%, 78%)
HSVhsv(76, 40%, 97%)
CMYKcmyk(10.5%, 0%, 39.5%, 2.7%)
CIE-LABlab(93.83, -23.59, 44.25)
CIE-LCHlch(93.83, 50.14, 118.06°)
OKLaboklab(93.85% -0.065 0.1081)
OKLCHoklch(93.85% 0.126 121)
XYZxyz(69.1966, 84.8665, 41.5837)
Luminance0.8487 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEF896 #B096F8
analogous
#F8E196 #DEF896 #ADF896
triadic
#DEF896 #96DEF8 #F896DE
tetradic
#DEF896 #96F8E1 #B096F8 #F896AD
square
#DEF896 #96F8E1 #B096F8 #F896AD
split-complementary
#DEF896 #96ADF8 #E196F8
monochromatic
#BAF023 #CCF45D #DEF896 #F0FCCF #F6FDE2

Accessibility & contrast

On white

1.17
#DEF896 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.97
#DEF896 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEF896
17.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEF896#FFFFFF#000000##000000
##DEF8961.001.1717.9717.97
#FFFFFF1.171.0021.0021.00
#00000017.9721.001.001.00
##00000017.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEE8F
Deuteranopia (green-blind)
#FFED9B
Tritanopia (blue-blind)
#E6EFE0
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #def896;
/* rgb */ color: rgb(222, 248, 150);
/* oklch */ color: oklch(93.8% 0.126 121.0);
Tailwind
colors: {
  custom: {
    50: '#e9fab6',
    500: '#def896',
    950: '#000000',
  },
}
SCSS
$custom: #def896;
$custom-light: #e9fab6;
$custom-dark: #000000;
JSON
{
  "hex": "#def896",
  "rgb": {
    "r": 222,
    "g": 248,
    "b": 150
  },
  "hsl": {
    "h": 75.918,
    "s": 87.5,
    "l": 78.039
  },
  "oklch": {
    "l": 0.9385,
    "c": 0.12612,
    "h": 121
  },
  "luminance": 0.84866
}

Semantic roles & 50–950 ramp

primary
#DEF896
secondary
#7C5BD8
accent
#01E43E
background
#FEFFFD
surface
#FDFFF8
border
#D5D7D1
text
#161711
muted
#848581

Preview Lab

Preview with #DEF896

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

Preview Lab → · Contrast checker → · Palette generator →

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