#DEF997#DEF997

#DEF997 is a very light, vivid yellow-green. Relative luminance 0.855; OKLCH L 94.1% C 0.126 H 121.4°. Best body text is #000000 at 18.10:1 contrast (WCAG AA passes).

Color values

HEX#DEF997
RGBrgb(222, 249, 151)
HSLhsl(77, 89%, 78%)
HSVhsv(77, 39%, 98%)
CMYKcmyk(10.8%, 0%, 39.4%, 2.4%)
CIE-LABlab(94.10, -23.95, 44.12)
CIE-LCHlch(94.10, 50.20, 118.49°)
OKLaboklab(94.08% -0.0659 0.1079)
OKLCHoklch(94.08% 0.126 121.4)
XYZxyz(69.5857, 85.5153, 42.1124)
Luminance0.8551 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEF997 #B297F9
analogous
#F9E397 #DEF997 #ADF997
triadic
#DEF997 #97DEF9 #F997DE
tetradic
#DEF997 #97F9E3 #B297F9 #F997AD
square
#DEF997 #97F9E3 #B297F9 #F997AD
split-complementary
#DEF997 #97ADF9 #E397F9
monochromatic
#B9F223 #CCF65D #DEF997 #F0FCD1 #F6FDE2

Accessibility & contrast

On white

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

On black

18.10
#DEF997 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEF997
18.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEF997#FFFFFF#000000##000000
##DEF9971.001.1618.1018.10
#FFFFFF1.161.0021.0021.00
#00000018.1021.001.001.00
##00000018.1021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #def997;
/* rgb */ color: rgb(222, 249, 151);
/* oklch */ color: oklch(94.1% 0.126 121.4);
Tailwind
colors: {
  custom: {
    50: '#e9fbb7',
    500: '#def997',
    950: '#000000',
  },
}
SCSS
$custom: #def997;
$custom-light: #e9fbb7;
$custom-dark: #000000;
JSON
{
  "hex": "#def997",
  "rgb": {
    "r": 222,
    "g": 249,
    "b": 151
  },
  "hsl": {
    "h": 76.531,
    "s": 89.091,
    "l": 78.431
  },
  "oklch": {
    "l": 0.94078,
    "c": 0.12641,
    "h": 121.4
  },
  "luminance": 0.85515
}

Semantic roles & 50–950 ramp

primary
#DEF997
secondary
#7E5BD9
accent
#00E63F
background
#FEFFFD
surface
#FDFFF8
border
#D5D7D1
text
#161711
muted
#848581

Preview Lab

Preview with #DEF997

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

Preview Lab → · Contrast checker → · Palette generator →

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