#DEF287#DEF287

#DEF287 is a very light, vivid yellow-green. Relative luminance 0.808; OKLCH L 92.4% C 0.134 H 117.8°. Best body text is #000000 at 17.16:1 contrast (WCAG AA passes).

Color values

HEX#DEF287
RGBrgb(222, 242, 135)
HSLhsl(71, 80%, 74%)
HSVhsv(71, 44%, 95%)
CMYKcmyk(8.3%, 0%, 44.2%, 5.1%)
CIE-LABlab(92.04, -22.35, 49.24)
CIE-LCHlch(92.04, 54.07, 114.41°)
OKLaboklab(92.35% -0.0625 0.1186)
OKLCHoklch(92.35% 0.134 117.8)
XYZxyz(66.2500, 80.7836, 35.0197)
Luminance0.8078 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEF287 #9B87F2
analogous
#F2D187 #DEF287 #A9F287
triadic
#DEF287 #87DEF2 #F287DE
tetradic
#DEF287 #87F2D1 #9B87F2 #F287A9
square
#DEF287 #87F2D1 #9B87F2 #F287A9
split-complementary
#DEF287 #87A9F2 #D187F2
monochromatic
#BFE619 #CFEC50 #DEF287 #EDF8BE #F7FCE3

Accessibility & contrast

On white

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

On black

17.16
#DEF287 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEF287
17.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEF287#FFFFFF#000000##000000
##DEF2871.001.2217.1617.16
#FFFFFF1.221.0021.0021.00
#00000017.1621.001.001.00
##00000017.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE87E
Deuteranopia (green-blind)
#FCE98C
Tritanopia (blue-blind)
#E8E8D9
Achromatopsia (no color)
#E8E8E8

Design tokens & code

CSS
--color: #def287;
/* rgb */ color: rgb(222, 242, 135);
/* oklch */ color: oklch(92.4% 0.134 117.8);
Tailwind
colors: {
  custom: {
    50: '#eaf6ac',
    500: '#def287',
    950: '#000000',
  },
}
SCSS
$custom: #def287;
$custom-light: #eaf6ac;
$custom-dark: #000000;
JSON
{
  "hex": "#def287",
  "rgb": {
    "r": 222,
    "g": 242,
    "b": 135
  },
  "hsl": {
    "h": 71.215,
    "s": 80.451,
    "l": 73.922
  },
  "oklch": {
    "l": 0.92354,
    "c": 0.13403,
    "h": 117.8
  },
  "luminance": 0.80783
}

Semantic roles & 50–950 ramp

primary
#DEF287
secondary
#674FCE
accent
#09DD30
background
#FFFFFD
surface
#FEFEF7
border
#D6D6D0
text
#161710
muted
#858581

Preview Lab

Preview with #DEF287

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

Preview Lab → · Contrast checker → · Palette generator →

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