#DEF787#DEF787

#DEF787 is a very light, vivid yellow-green. Relative luminance 0.838; OKLCH L 93.4% C 0.140 H 119.5°. Best body text is #000000 at 17.76:1 contrast (WCAG AA passes).

Color values

HEX#DEF787
RGBrgb(222, 247, 135)
HSLhsl(73, 88%, 75%)
HSVhsv(73, 45%, 97%)
CMYKcmyk(10.1%, 0%, 45.3%, 3.1%)
CIE-LABlab(93.36, -24.73, 50.88)
CIE-LCHlch(93.36, 56.57, 115.93°)
OKLaboklab(93.42% -0.0693 0.1222)
OKLCHoklch(93.42% 0.14 119.5)
XYZxyz(67.7585, 83.8007, 35.5225)
Luminance0.8380 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEF787 #A087F7
analogous
#F7D887 #DEF787 #A6F787
triadic
#DEF787 #87DEF7 #F787DE
tetradic
#DEF787 #87F7D8 #A087F7 #F787A6
square
#DEF787 #87F7D8 #A087F7 #F787A6
split-complementary
#DEF787 #87A6F7 #D887F7
monochromatic
#BEEF14 #CEF34E #DEF787 #EEFBC0 #F7FDE2

Accessibility & contrast

On white

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

On black

17.76
#DEF787 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEF787
17.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEF787#FFFFFF#000000##000000
##DEF7871.001.1817.7617.76
#FFFFFF1.181.0021.0021.00
#00000017.7621.001.001.00
##00000017.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC7E
Deuteranopia (green-blind)
#FFEC8D
Tritanopia (blue-blind)
#E7EDDD
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #def787;
/* rgb */ color: rgb(222, 247, 135);
/* oklch */ color: oklch(93.4% 0.140 119.5);
Tailwind
colors: {
  custom: {
    50: '#eaf9ac',
    500: '#def787',
    950: '#000000',
  },
}
SCSS
$custom: #def787;
$custom-light: #eaf9ac;
$custom-dark: #000000;
JSON
{
  "hex": "#def787",
  "rgb": {
    "r": 222,
    "g": 247,
    "b": 135
  },
  "hsl": {
    "h": 73.393,
    "s": 87.5,
    "l": 74.902
  },
  "oklch": {
    "l": 0.93417,
    "c": 0.14048,
    "h": 119.5
  },
  "luminance": 0.838
}

Semantic roles & 50–950 ramp

primary
#DEF787
secondary
#6C4ED4
accent
#01E434
background
#FFFFFD
surface
#FEFFF7
border
#D6D7D0
text
#161710
muted
#858581

Preview Lab

Preview with #DEF787

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

Preview Lab → · Contrast checker → · Palette generator →

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