#DEF2AB#DEF2AB

#DEF2AB is a very light, moderate yellow-green. Relative luminance 0.820; OKLCH L 92.9% C 0.094 H 121.0°. Best body text is #000000 at 17.39:1 contrast (WCAG AA passes).

Color values

HEX#DEF2AB
RGBrgb(222, 242, 171)
HSLhsl(77, 73%, 81%)
HSVhsv(77, 29%, 95%)
CMYKcmyk(8.3%, 0%, 29.3%, 5.1%)
CIE-LABlab(92.56, -18.08, 32.17)
CIE-LCHlch(92.56, 36.90, 119.34°)
OKLaboklab(92.95% -0.0485 0.0806)
OKLCHoklch(92.95% 0.094 121)
XYZxyz(69.2265, 81.9742, 50.6958)
Luminance0.8197 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEF2AB #BFABF2
analogous
#F2E2AB #DEF2AB #BAF2AB
triadic
#DEF2AB #ABDEF2 #F2ABDE
tetradic
#DEF2AB #ABF2E2 #BFABF2 #F2ABBA
square
#DEF2AB #ABF2E2 #BFABF2 #F2ABBA
split-complementary
#DEF2AB #ABBAF2 #E2ABF2
monochromatic
#B4E241 #C9EA76 #DEF2AB #F3FAE0 #F5FBE5

Accessibility & contrast

On white

1.21
#DEF2AB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.39
#DEF2AB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEF2AB
17.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEF2AB#FFFFFF#000000##000000
##DEF2AB1.001.2117.3917.39
#FFFFFF1.211.0021.0021.00
#00000017.3921.001.001.00
##00000017.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FBEAA6
Deuteranopia (green-blind)
#F8EAAE
Tritanopia (blue-blind)
#E4EBDF
Achromatopsia (no color)
#EAEAEA

Design tokens & code

CSS
--color: #def2ab;
/* rgb */ color: rgb(222, 242, 171);
/* oklch */ color: oklch(92.9% 0.094 121.0);
Tailwind
colors: {
  custom: {
    50: '#e9f6c4',
    500: '#def2ab',
    950: '#000000',
  },
}
SCSS
$custom: #def2ab;
$custom-light: #e9f6c4;
$custom-dark: #000000;
JSON
{
  "hex": "#def2ab",
  "rgb": {
    "r": 222,
    "g": 242,
    "b": 171
  },
  "hsl": {
    "h": 76.901,
    "s": 73.196,
    "l": 80.98
  },
  "oklch": {
    "l": 0.92948,
    "c": 0.09407,
    "h": 121
  },
  "luminance": 0.81974
}

Semantic roles & 50–950 ramp

primary
#DEF2AB
secondary
#8B70D1
accent
#10D548
background
#FEFFFD
surface
#FDFEF9
border
#D5D6D2
text
#161712
muted
#848582

Preview Lab

Preview with #DEF2AB

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

Preview Lab → · Contrast checker → · Palette generator →

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