#DEF8A2#DEF8A2

#DEF8A2 is a very light, moderate yellow-green. Relative luminance 0.853; OKLCH L 94.0% C 0.113 H 122.3°. Best body text is #000000 at 18.05:1 contrast (WCAG AA passes).

Color values

HEX#DEF8A2
RGBrgb(222, 248, 162)
HSLhsl(78, 86%, 80%)
HSVhsv(78, 35%, 97%)
CMYKcmyk(10.5%, 0%, 34.7%, 2.7%)
CIE-LABlab(94.00, -22.15, 38.57)
CIE-LCHlch(94.00, 44.48, 119.87°)
OKLaboklab(94.05% -0.0603 0.0955)
OKLCHoklch(94.05% 0.113 122.3)
XYZxyz(70.2128, 85.2730, 46.9358)
Luminance0.8527 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEF8A2 #BCA2F8
analogous
#F8E7A2 #DEF8A2 #B3F8A2
triadic
#DEF8A2 #A2DEF8 #F8A2DE
tetradic
#DEF8A2 #A2F8E7 #BCA2F8 #F8A2B3
square
#DEF8A2 #A2F8E7 #BCA2F8 #F8A2B3
split-complementary
#DEF8A2 #A2B3F8 #E7A2F8
monochromatic
#B6EF30 #CAF469 #DEF8A2 #F2FCDB #F5FDE3

Accessibility & contrast

On white

1.16
#DEF8A2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.05
#DEF8A2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEF8A2
18.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEF8A2#FFFFFF#000000##000000
##DEF8A21.001.1618.0518.05
#FFFFFF1.161.0021.0021.00
#00000018.0521.001.001.00
##00000018.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEE9C
Deuteranopia (green-blind)
#FEEEA6
Tritanopia (blue-blind)
#E5F0E2
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #def8a2;
/* rgb */ color: rgb(222, 248, 162);
/* oklch */ color: oklch(94.0% 0.113 122.3);
Tailwind
colors: {
  custom: {
    50: '#e9fabe',
    500: '#def8a2',
    950: '#000000',
  },
}
SCSS
$custom: #def8a2;
$custom-light: #e9fabe;
$custom-dark: #000000;
JSON
{
  "hex": "#def8a2",
  "rgb": {
    "r": 222,
    "g": 248,
    "b": 162
  },
  "hsl": {
    "h": 78.14,
    "s": 86,
    "l": 80.392
  },
  "oklch": {
    "l": 0.94048,
    "c": 0.11291,
    "h": 122.3
  },
  "luminance": 0.85273
}

Semantic roles & 50–950 ramp

primary
#DEF8A2
secondary
#8865D9
accent
#03E347
background
#FEFFFD
surface
#FDFFF8
border
#D5D7D1
text
#161712
muted
#848582

Preview Lab

Preview with #DEF8A2

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

Preview Lab → · Contrast checker → · Palette generator →

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