#DEF2B2#DEF2B2

#DEF2B2 is a very light, moderate yellow-green. Relative luminance 0.822; OKLCH L 93.1% C 0.086 H 122.2°. Best body text is #000000 at 17.45:1 contrast (WCAG AA passes).

Color values

HEX#DEF2B2
RGBrgb(222, 242, 178)
HSLhsl(79, 71%, 82%)
HSVhsv(79, 26%, 95%)
CMYKcmyk(8.3%, 0%, 26.4%, 5.1%)
CIE-LABlab(92.68, -17.12, 28.78)
CIE-LCHlch(92.68, 33.49, 120.75°)
OKLaboklab(93.08% -0.0457 0.0726)
OKLCHoklch(93.08% 0.086 122.2)
XYZxyz(69.9114, 82.2482, 54.3033)
Luminance0.8225 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEF2B2 #C6B2F2
analogous
#F2E6B2 #DEF2B2 #BEF2B2
triadic
#DEF2B2 #B2DEF2 #F2B2DE
tetradic
#DEF2B2 #B2F2E6 #C6B2F2 #F2B2BE
square
#DEF2B2 #B2F2E6 #C6B2F2 #F2B2BE
split-complementary
#DEF2B2 #B2BEF2 #E6B2F2
monochromatic
#B1E049 #C8E97E #DEF2B2 #F4FBE5 #F4FBE5

Accessibility & contrast

On white

1.20
#DEF2B2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.45
#DEF2B2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEF2B2
17.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEF2B2#FFFFFF#000000##000000
##DEF2B21.001.2017.4517.45
#FFFFFF1.201.0021.0021.00
#00000017.4521.001.001.00
##00000017.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FAEAAE
Deuteranopia (green-blind)
#F7EAB5
Tritanopia (blue-blind)
#E3ECE1
Achromatopsia (no color)
#EAEAEA

Design tokens & code

CSS
--color: #def2b2;
/* rgb */ color: rgb(222, 242, 178);
/* oklch */ color: oklch(93.1% 0.086 122.2);
Tailwind
colors: {
  custom: {
    50: '#e8f6c9',
    500: '#def2b2',
    950: '#000000',
  },
}
SCSS
$custom: #def2b2;
$custom-light: #e8f6c9;
$custom-dark: #000000;
JSON
{
  "hex": "#def2b2",
  "rgb": {
    "r": 222,
    "g": 242,
    "b": 178
  },
  "hsl": {
    "h": 78.75,
    "s": 71.111,
    "l": 82.353
  },
  "oklch": {
    "l": 0.93084,
    "c": 0.08579,
    "h": 122.2
  },
  "luminance": 0.82248
}

Semantic roles & 50–950 ramp

primary
#DEF2B2
secondary
#9377D1
accent
#12D34F
background
#FEFFFD
surface
#FDFEF9
border
#D5D6D2
text
#161713
muted
#848582

Preview Lab

Preview with #DEF2B2

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

Preview Lab → · Contrast checker → · Palette generator →

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