#DEF781#DEF781

#DEF781 is a very light, vivid yellow-green. Relative luminance 0.836; OKLCH L 93.3% C 0.146 H 119.2°. Best body text is #000000 at 17.73:1 contrast (WCAG AA passes).

Color values

HEX#DEF781
RGBrgb(222, 247, 129)
HSLhsl(73, 88%, 74%)
HSVhsv(73, 48%, 97%)
CMYKcmyk(10.1%, 0%, 47.8%, 3.1%)
CIE-LABlab(93.29, -25.33, 53.61)
CIE-LCHlch(93.29, 59.29, 115.29°)
OKLaboklab(93.34% -0.0714 0.1279)
OKLCHoklch(93.34% 0.146 119.2)
XYZxyz(67.3479, 83.6364, 33.3601)
Luminance0.8364 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEF781 #9A81F7
analogous
#F7D581 #DEF781 #A3F781
triadic
#DEF781 #81DEF7 #F781DE
tetradic
#DEF781 #81F7D5 #9A81F7 #F781A3
square
#DEF781 #81F7D5 #9A81F7 #F781A3
split-complementary
#DEF781 #81A3F7 #D581F7
monochromatic
#BFEE0F #CFF347 #DEF781 #EDFBBB #F7FDE2

Accessibility & contrast

On white

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

On black

17.73
#DEF781 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEF781
17.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEF781#FFFFFF#000000##000000
##DEF7811.001.1817.7317.73
#FFFFFF1.181.0021.0021.00
#00000017.7321.001.001.00
##00000017.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC77
Deuteranopia (green-blind)
#FFEC87
Tritanopia (blue-blind)
#E8ECDC
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #def781;
/* rgb */ color: rgb(222, 247, 129);
/* oklch */ color: oklch(93.3% 0.146 119.2);
Tailwind
colors: {
  custom: {
    50: '#eaf9a8',
    500: '#def781',
    950: '#000000',
  },
}
SCSS
$custom: #def781;
$custom-light: #eaf9a8;
$custom-dark: #000000;
JSON
{
  "hex": "#def781",
  "rgb": {
    "r": 222,
    "g": 247,
    "b": 129
  },
  "hsl": {
    "h": 72.712,
    "s": 88.06,
    "l": 73.725
  },
  "oklch": {
    "l": 0.93337,
    "c": 0.14645,
    "h": 119.2
  },
  "luminance": 0.83636
}

Semantic roles & 50–950 ramp

primary
#DEF781
secondary
#6649D4
accent
#01E531
background
#FFFFFD
surface
#FEFFF7
border
#D6D7D0
text
#161710
muted
#858581

Preview Lab

Preview with #DEF781

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

Preview Lab → · Contrast checker → · Palette generator →

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