#DEF878#DEF878

#DEF878 is a very light, vivid yellow-green. Relative luminance 0.840; OKLCH L 93.4% C 0.156 H 119.1°. Best body text is #000000 at 17.80:1 contrast (WCAG AA passes).

Color values

HEX#DEF878
RGBrgb(222, 248, 120)
HSLhsl(72, 90%, 72%)
HSVhsv(72, 52%, 97%)
CMYKcmyk(10.5%, 0%, 51.6%, 2.7%)
CIE-LABlab(93.46, -26.64, 57.94)
CIE-LCHlch(93.46, 63.77, 114.69°)
OKLaboklab(93.44% -0.0759 0.1366)
OKLCHoklch(93.44% 0.156 119.1)
XYZxyz(67.0825, 84.0208, 30.4493)
Luminance0.8402 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEF878 #9278F8
analogous
#F8D278 #DEF878 #9EF878
triadic
#DEF878 #78DEF8 #F878DE
tetradic
#DEF878 #78F8D2 #9278F8 #F8789E
square
#DEF878 #78F8D2 #9278F8 #F8789E
split-complementary
#DEF878 #789EF8 #D278F8
monochromatic
#BDE90C #D0F53E #DEF878 #ECFBB2 #F8FDE2

Accessibility & contrast

On white

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

On black

17.80
#DEF878 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEF878
17.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEF878#FFFFFF#000000##000000
##DEF8781.001.1817.8017.80
#FFFFFF1.181.0021.0021.00
#00000017.8021.001.001.00
##00000017.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC6C
Deuteranopia (green-blind)
#FFED7F
Tritanopia (blue-blind)
#E9EDDB
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #def878;
/* rgb */ color: rgb(222, 248, 120);
/* oklch */ color: oklch(93.4% 0.156 119.1);
Tailwind
colors: {
  custom: {
    50: '#eafaa2',
    500: '#def878',
    950: '#000000',
  },
}
SCSS
$custom: #def878;
$custom-light: #eafaa2;
$custom-dark: #000000;
JSON
{
  "hex": "#def878",
  "rgb": {
    "r": 222,
    "g": 248,
    "b": 120
  },
  "hsl": {
    "h": 72.188,
    "s": 90.141,
    "l": 72.157
  },
  "oklch": {
    "l": 0.93438,
    "c": 0.15626,
    "h": 119.1
  },
  "luminance": 0.8402
}

Semantic roles & 50–950 ramp

primary
#DEF878
secondary
#5E40D4
accent
#00E62F
background
#FFFFFC
surface
#FEFFF6
border
#D6D7D0
text
#16170F
muted
#858580

Preview Lab

Preview with #DEF878

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

Preview Lab → · Contrast checker → · Palette generator →

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