#DEF897#DEF897

#DEF897 is a very light, vivid yellow-green. Relative luminance 0.849; OKLCH L 93.9% C 0.125 H 121.1°. Best body text is #000000 at 17.98:1 contrast (WCAG AA passes).

Color values

HEX#DEF897
RGBrgb(222, 248, 151)
HSLhsl(76, 87%, 78%)
HSVhsv(76, 39%, 97%)
CMYKcmyk(10.5%, 0%, 39.1%, 2.7%)
CIE-LABlab(93.84, -23.47, 43.78)
CIE-LCHlch(93.84, 49.67, 118.20°)
OKLaboklab(93.87% -0.0646 0.1071)
OKLCHoklch(93.87% 0.125 121.1)
XYZxyz(69.2775, 84.8988, 42.0096)
Luminance0.8490 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEF897 #B197F8
analogous
#F8E197 #DEF897 #ADF897
triadic
#DEF897 #97DEF8 #F897DE
tetradic
#DEF897 #97F8E1 #B197F8 #F897AD
square
#DEF897 #97F8E1 #B197F8 #F897AD
split-complementary
#DEF897 #97ADF8 #E197F8
monochromatic
#BAF024 #CCF45E #DEF897 #F0FCD0 #F6FDE2

Accessibility & contrast

On white

1.17
#DEF897 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.98
#DEF897 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEF897
17.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEF897#FFFFFF#000000##000000
##DEF8971.001.1717.9817.98
#FFFFFF1.171.0021.0021.00
#00000017.9821.001.001.00
##00000017.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEE90
Deuteranopia (green-blind)
#FFED9C
Tritanopia (blue-blind)
#E6EFE0
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #def897;
/* rgb */ color: rgb(222, 248, 151);
/* oklch */ color: oklch(93.9% 0.125 121.1);
Tailwind
colors: {
  custom: {
    50: '#e9fab7',
    500: '#def897',
    950: '#000000',
  },
}
SCSS
$custom: #def897;
$custom-light: #e9fab7;
$custom-dark: #000000;
JSON
{
  "hex": "#def897",
  "rgb": {
    "r": 222,
    "g": 248,
    "b": 151
  },
  "hsl": {
    "h": 76.082,
    "s": 87.387,
    "l": 78.235
  },
  "oklch": {
    "l": 0.93866,
    "c": 0.12505,
    "h": 121.1
  },
  "luminance": 0.84899
}

Semantic roles & 50–950 ramp

primary
#DEF897
secondary
#7D5CD8
accent
#02E43E
background
#FEFFFD
surface
#FDFFF8
border
#D5D7D1
text
#161711
muted
#848581

Preview Lab

Preview with #DEF897

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

Preview Lab → · Contrast checker → · Palette generator →

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