#DEF2A2#DEF2A2

#DEF2A2 is a very light, moderate yellow-green. Relative luminance 0.816; OKLCH L 92.8% C 0.105 H 119.9°. Best body text is #000000 at 17.33:1 contrast (WCAG AA passes).

Color values

HEX#DEF2A2
RGBrgb(222, 242, 162)
HSLhsl(75, 75%, 79%)
HSVhsv(75, 33%, 95%)
CMYKcmyk(8.3%, 0%, 33.1%, 5.1%)
CIE-LABlab(92.42, -19.25, 36.50)
CIE-LCHlch(92.42, 41.26, 117.81°)
OKLaboklab(92.78% -0.0521 0.0906)
OKLCHoklch(92.78% 0.105 119.9)
XYZxyz(68.3977, 81.6427, 46.3307)
Luminance0.8164 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEF2A2 #B6A2F2
analogous
#F2DEA2 #DEF2A2 #B6F2A2
triadic
#DEF2A2 #A2DEF2 #F2A2DE
tetradic
#DEF2A2 #A2F2DE #B6A2F2 #F2A2B6
square
#DEF2A2 #A2F2DE #B6A2F2 #F2A2B6
split-complementary
#DEF2A2 #A2B6F2 #DEA2F2
monochromatic
#B8E337 #CBEA6C #DEF2A2 #F1FAD8 #F5FBE4

Accessibility & contrast

On white

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

On black

17.33
#DEF2A2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEF2A2
17.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEF2A2#FFFFFF#000000##000000
##DEF2A21.001.2117.3317.33
#FFFFFF1.211.0021.0021.00
#00000017.3321.001.001.00
##00000017.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FCE99C
Deuteranopia (green-blind)
#F9EAA6
Tritanopia (blue-blind)
#E5EADE
Achromatopsia (no color)
#E9E9E9

Design tokens & code

CSS
--color: #def2a2;
/* rgb */ color: rgb(222, 242, 162);
/* oklch */ color: oklch(92.8% 0.105 119.9);
Tailwind
colors: {
  custom: {
    50: '#e9f6be',
    500: '#def2a2',
    950: '#000000',
  },
}
SCSS
$custom: #def2a2;
$custom-light: #e9f6be;
$custom-dark: #000000;
JSON
{
  "hex": "#def2a2",
  "rgb": {
    "r": 222,
    "g": 242,
    "b": 162
  },
  "hsl": {
    "h": 75,
    "s": 75.472,
    "l": 79.216
  },
  "oklch": {
    "l": 0.92783,
    "c": 0.10453,
    "h": 119.9
  },
  "luminance": 0.81642
}

Semantic roles & 50–950 ramp

primary
#DEF2A2
secondary
#8268D0
accent
#0ED840
background
#FEFFFD
surface
#FDFEF8
border
#D5D6D1
text
#161712
muted
#848582

Preview Lab

Preview with #DEF2A2

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

Preview Lab → · Contrast checker → · Palette generator →

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