#DEF786#DEF786

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

Color values

HEX#DEF786
RGBrgb(222, 247, 134)
HSLhsl(73, 88%, 75%)
HSVhsv(73, 46%, 97%)
CMYKcmyk(10.1%, 0%, 45.7%, 3.1%)
CIE-LABlab(93.35, -24.84, 51.33)
CIE-LCHlch(93.35, 57.03, 115.82°)
OKLaboklab(93.4% -0.0696 0.1232)
OKLCHoklch(93.4% 0.141 119.5)
XYZxyz(67.6884, 83.7726, 35.1535)
Luminance0.8377 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEF786 #9F86F7
analogous
#F7D786 #DEF786 #A6F786
triadic
#DEF786 #86DEF7 #F786DE
tetradic
#DEF786 #86F7D7 #9F86F7 #F786A6
square
#DEF786 #86F7D7 #9F86F7 #F786A6
split-complementary
#DEF786 #86A6F7 #D786F7
monochromatic
#BFEF13 #CEF34D #DEF786 #EEFBBF #F7FDE2

Accessibility & contrast

On white

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

On black

17.75
#DEF786 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEF786
17.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEF786#FFFFFF#000000##000000
##DEF7861.001.1817.7517.75
#FFFFFF1.181.0021.0021.00
#00000017.7521.001.001.00
##00000017.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC7C
Deuteranopia (green-blind)
#FFEC8C
Tritanopia (blue-blind)
#E8EDDC
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #def786;
/* rgb */ color: rgb(222, 247, 134);
/* oklch */ color: oklch(93.4% 0.141 119.5);
Tailwind
colors: {
  custom: {
    50: '#eaf9ab',
    500: '#def786',
    950: '#000000',
  },
}
SCSS
$custom: #def786;
$custom-light: #eaf9ab;
$custom-dark: #000000;
JSON
{
  "hex": "#def786",
  "rgb": {
    "r": 222,
    "g": 247,
    "b": 134
  },
  "hsl": {
    "h": 73.274,
    "s": 87.597,
    "l": 74.706
  },
  "oklch": {
    "l": 0.93403,
    "c": 0.14148,
    "h": 119.5
  },
  "luminance": 0.83772
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #DEF786

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

Preview Lab → · Contrast checker → · Palette generator →

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