#DEF871#DEF871

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

Color values

HEX#DEF871
RGBrgb(222, 248, 113)
HSLhsl(72, 91%, 71%)
HSVhsv(72, 54%, 97%)
CMYKcmyk(10.5%, 0%, 54.4%, 2.7%)
CIE-LABlab(93.39, -27.24, 60.98)
CIE-LCHlch(93.39, 66.78, 114.07°)
OKLaboklab(93.36% -0.0782 0.1425)
OKLCHoklch(93.36% 0.163 118.8)
XYZxyz(66.6731, 83.8571, 28.2932)
Luminance0.8386 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEF871 #8B71F8
analogous
#F8CF71 #DEF871 #9AF871
triadic
#DEF871 #71DEF8 #F871DE
tetradic
#DEF871 #71F8CF #8B71F8 #F8719A
square
#DEF871 #71F8CF #8B71F8 #F8719A
split-complementary
#DEF871 #719AF8 #CF71F8
monochromatic
#BAE30B #D0F537 #DEF871 #ECFBAB #F8FEE2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##DEF871#FFFFFF#000000##000000
##DEF8711.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)
#FFEC63
Deuteranopia (green-blind)
#FFED79
Tritanopia (blue-blind)
#E9ECDA
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #def871;
/* rgb */ color: rgb(222, 248, 113);
/* oklch */ color: oklch(93.4% 0.163 118.8);
Tailwind
colors: {
  custom: {
    50: '#ebfa9e',
    500: '#def871',
    950: '#000000',
  },
}
SCSS
$custom: #def871;
$custom-light: #ebfa9e;
$custom-dark: #000000;
JSON
{
  "hex": "#def871",
  "rgb": {
    "r": 222,
    "g": 248,
    "b": 113
  },
  "hsl": {
    "h": 71.556,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.93358,
    "c": 0.16257,
    "h": 118.8
  },
  "luminance": 0.83857
}

Semantic roles & 50–950 ramp

primary
#DEF871
secondary
#583AD3
accent
#00E62C
background
#FFFFFC
surface
#FEFFF5
border
#D6D7CF
text
#16170F
muted
#858580

Preview Lab

Preview with #DEF871

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

Preview Lab → · Contrast checker → · Palette generator →

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