#DEF978#DEF978

#DEF978 is a very light, vivid yellow-green. Relative luminance 0.846; OKLCH L 93.7% C 0.158 H 119.4°. Best body text is #000000 at 17.93:1 contrast (WCAG AA passes).

Color values

HEX#DEF978
RGBrgb(222, 249, 120)
HSLhsl(73, 91%, 72%)
HSVhsv(73, 52%, 98%)
CMYKcmyk(10.8%, 0%, 51.8%, 2.4%)
CIE-LABlab(93.73, -27.11, 58.25)
CIE-LCHlch(93.73, 64.25, 114.96°)
OKLaboklab(93.65% -0.0772 0.1373)
OKLCHoklch(93.65% 0.158 119.4)
XYZxyz(67.3907, 84.6374, 30.5521)
Luminance0.8464 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEF978 #9378F9
analogous
#F9D378 #DEF978 #9EF978
triadic
#DEF978 #78DEF9 #F978DE
tetradic
#DEF978 #78F9D3 #9378F9 #F9789E
square
#DEF978 #78F9D3 #9378F9 #F9789E
split-complementary
#DEF978 #789EF9 #D378F9
monochromatic
#BDEC0A #D0F63D #DEF978 #ECFCB3 #F8FEE2

Accessibility & contrast

On white

1.17
#DEF978 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.93
#DEF978 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEF978
17.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEF978#FFFFFF#000000##000000
##DEF9781.001.1717.9317.93
#FFFFFF1.171.0021.0021.00
#00000017.9321.001.001.00
##00000017.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED6C
Deuteranopia (green-blind)
#FFED7F
Tritanopia (blue-blind)
#E8EEDC
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #def978;
/* rgb */ color: rgb(222, 249, 120);
/* oklch */ color: oklch(93.7% 0.158 119.4);
Tailwind
colors: {
  custom: {
    50: '#eafba2',
    500: '#def978',
    950: '#000000',
  },
}
SCSS
$custom: #def978;
$custom-light: #eafba2;
$custom-dark: #000000;
JSON
{
  "hex": "#def978",
  "rgb": {
    "r": 222,
    "g": 249,
    "b": 120
  },
  "hsl": {
    "h": 72.558,
    "s": 91.489,
    "l": 72.353
  },
  "oklch": {
    "l": 0.93653,
    "c": 0.1575,
    "h": 119.4
  },
  "luminance": 0.84637
}

Semantic roles & 50–950 ramp

primary
#DEF978
secondary
#5F40D5
accent
#00E630
background
#FFFFFC
surface
#FEFFF6
border
#D6D7D0
text
#16170F
muted
#858580

Preview Lab

Preview with #DEF978

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

Preview Lab → · Contrast checker → · Palette generator →

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