#DEF870#DEF870

#DEF870 is a very light, vivid yellow-green. Relative luminance 0.838; OKLCH L 93.3% C 0.163 H 118.7°. Best body text is #000000 at 17.77:1 contrast (WCAG AA passes).

Color values

HEX#DEF870
RGBrgb(222, 248, 112)
HSLhsl(71, 91%, 71%)
HSVhsv(71, 55%, 97%)
CMYKcmyk(10.5%, 0%, 54.8%, 2.7%)
CIE-LABlab(93.38, -27.32, 61.40)
CIE-LCHlch(93.38, 67.21, 113.99°)
OKLaboklab(93.35% -0.0785 0.1433)
OKLCHoklch(93.35% 0.163 118.7)
XYZxyz(66.6171, 83.8347, 27.9984)
Luminance0.8383 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEF870 #8A70F8
analogous
#F8CE70 #DEF870 #9AF870
triadic
#DEF870 #70DEF8 #F870DE
tetradic
#DEF870 #70F8CE #8A70F8 #F8709A
square
#DEF870 #70F8CE #8A70F8 #F8709A
split-complementary
#DEF870 #709AF8 #CE70F8
monochromatic
#B9E30B #D1F536 #DEF870 #EBFBAA #F8FEE2

Accessibility & contrast

On white

1.18
#DEF870 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.77
#DEF870 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEF870
17.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEF870#FFFFFF#000000##000000
##DEF8701.001.1817.7717.77
#FFFFFF1.181.0021.0021.00
#00000017.7721.001.001.00
##00000017.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC62
Deuteranopia (green-blind)
#FFED78
Tritanopia (blue-blind)
#E9ECDA
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #def870;
/* rgb */ color: rgb(222, 248, 112);
/* oklch */ color: oklch(93.3% 0.163 118.7);
Tailwind
colors: {
  custom: {
    50: '#ebfa9d',
    500: '#def870',
    950: '#000000',
  },
}
SCSS
$custom: #def870;
$custom-light: #ebfa9d;
$custom-dark: #000000;
JSON
{
  "hex": "#def870",
  "rgb": {
    "r": 222,
    "g": 248,
    "b": 112
  },
  "hsl": {
    "h": 71.471,
    "s": 90.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.93347,
    "c": 0.16345,
    "h": 118.7
  },
  "luminance": 0.83834
}

Semantic roles & 50–950 ramp

primary
#DEF870
secondary
#5739D3
accent
#00E62C
background
#FFFFFC
surface
#FEFFF5
border
#D6D7CF
text
#16170F
muted
#858580

Preview Lab

Preview with #DEF870

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

Preview Lab → · Contrast checker → · Palette generator →

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