#DEF291#DEF291

#DEF291 is a very light, vivid yellow-green. Relative luminance 0.811; OKLCH L 92.5% C 0.123 H 118.4°. Best body text is #000000 at 17.22:1 contrast (WCAG AA passes).

Color values

HEX#DEF291
RGBrgb(222, 242, 145)
HSLhsl(72, 79%, 76%)
HSVhsv(72, 40%, 95%)
CMYKcmyk(8.3%, 0%, 40.1%, 5.1%)
CIE-LABlab(92.17, -21.27, 44.58)
CIE-LCHlch(92.17, 49.39, 115.51°)
OKLaboklab(92.5% -0.0587 0.1086)
OKLCHoklch(92.5% 0.123 118.4)
XYZxyz(66.9874, 81.0786, 38.9033)
Luminance0.8108 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEF291 #A591F2
analogous
#F2D591 #DEF291 #ADF291
triadic
#DEF291 #91DEF2 #F291DE
tetradic
#DEF291 #91F2D5 #A591F2 #F291AD
square
#DEF291 #91F2D5 #A591F2 #F291AD
split-complementary
#DEF291 #91ADF2 #D591F2
monochromatic
#BDE524 #CEEC5A #DEF291 #EEF8C8 #F7FCE4

Accessibility & contrast

On white

1.22
#DEF291 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.22
#DEF291 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEF291
17.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEF291#FFFFFF#000000##000000
##DEF2911.001.2217.2217.22
#FFFFFF1.221.0021.0021.00
#00000017.2221.001.001.00
##00000017.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FEE88A
Deuteranopia (green-blind)
#FBE996
Tritanopia (blue-blind)
#E7E9DA
Achromatopsia (no color)
#E8E8E8

Design tokens & code

CSS
--color: #def291;
/* rgb */ color: rgb(222, 242, 145);
/* oklch */ color: oklch(92.5% 0.123 118.4);
Tailwind
colors: {
  custom: {
    50: '#e9f6b2',
    500: '#def291',
    950: '#000000',
  },
}
SCSS
$custom: #def291;
$custom-light: #e9f6b2;
$custom-dark: #000000;
JSON
{
  "hex": "#def291",
  "rgb": {
    "r": 222,
    "g": 242,
    "b": 145
  },
  "hsl": {
    "h": 72.371,
    "s": 78.862,
    "l": 75.882
  },
  "oklch": {
    "l": 0.92501,
    "c": 0.12349,
    "h": 118.4
  },
  "luminance": 0.81078
}

Semantic roles & 50–950 ramp

primary
#DEF291
secondary
#7158CF
accent
#0ADB35
background
#FEFFFD
surface
#FDFEF8
border
#D5D6D1
text
#161711
muted
#848581

Preview Lab

Preview with #DEF291

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

Preview Lab → · Contrast checker → · Palette generator →

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