#DEF2AF#DEF2AF

#DEF2AF is a very light, moderate yellow-green. Relative luminance 0.821; OKLCH L 93.0% C 0.089 H 121.6°. Best body text is #000000 at 17.43:1 contrast (WCAG AA passes).

Color values

HEX#DEF2AF
RGBrgb(222, 242, 175)
HSLhsl(78, 72%, 82%)
HSVhsv(78, 28%, 95%)
CMYKcmyk(8.3%, 0%, 27.7%, 5.1%)
CIE-LABlab(92.63, -17.54, 30.23)
CIE-LCHlch(92.63, 34.95, 120.12°)
OKLaboklab(93.03% -0.0469 0.0761)
OKLCHoklch(93.03% 0.089 121.6)
XYZxyz(69.6135, 82.1290, 52.7342)
Luminance0.8213 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEF2AF #C3AFF2
analogous
#F2E4AF #DEF2AF #BDF2AF
triadic
#DEF2AF #AFDEF2 #F2AFDE
tetradic
#DEF2AF #AFF2E4 #C3AFF2 #F2AFBD
square
#DEF2AF #AFF2E4 #C3AFF2 #F2AFBD
split-complementary
#DEF2AF #AFBDF2 #E4AFF2
monochromatic
#B3E146 #C8E97A #DEF2AF #F4FBE4 #F4FBE5

Accessibility & contrast

On white

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

On black

17.43
#DEF2AF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEF2AF
17.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEF2AF#FFFFFF#000000##000000
##DEF2AF1.001.2117.4317.43
#FFFFFF1.211.0021.0021.00
#00000017.4321.001.001.00
##00000017.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FAEAAB
Deuteranopia (green-blind)
#F8EAB2
Tritanopia (blue-blind)
#E4EBE0
Achromatopsia (no color)
#EAEAEA

Design tokens & code

CSS
--color: #def2af;
/* rgb */ color: rgb(222, 242, 175);
/* oklch */ color: oklch(93.0% 0.089 121.6);
Tailwind
colors: {
  custom: {
    50: '#e9f6c7',
    500: '#def2af',
    950: '#000000',
  },
}
SCSS
$custom: #def2af;
$custom-light: #e9f6c7;
$custom-dark: #000000;
JSON
{
  "hex": "#def2af",
  "rgb": {
    "r": 222,
    "g": 242,
    "b": 175
  },
  "hsl": {
    "h": 77.91,
    "s": 72.043,
    "l": 81.765
  },
  "oklch": {
    "l": 0.93025,
    "c": 0.08935,
    "h": 121.6
  },
  "luminance": 0.82129
}

Semantic roles & 50–950 ramp

primary
#DEF2AF
secondary
#9074D1
accent
#11D44C
background
#FEFFFD
surface
#FDFEF9
border
#D5D6D2
text
#161713
muted
#848582

Preview Lab

Preview with #DEF2AF

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

Preview Lab → · Contrast checker → · Palette generator →

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