#DEF478#DEF478

#DEF478 is a very light, vivid yellow-green. Relative luminance 0.816; OKLCH L 92.6% C 0.151 H 117.8°. Best body text is #000000 at 17.32:1 contrast (WCAG AA passes).

Color values

HEX#DEF478
RGBrgb(222, 244, 120)
HSLhsl(71, 85%, 71%)
HSVhsv(71, 51%, 96%)
CMYKcmyk(9%, 0%, 50.8%, 4.3%)
CIE-LABlab(92.39, -24.75, 56.68)
CIE-LCHlch(92.39, 61.85, 113.59°)
OKLaboklab(92.58% -0.0705 0.1339)
OKLCHoklch(92.58% 0.151 117.8)
XYZxyz(65.8658, 81.5876, 30.0438)
Luminance0.8159 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEF478 #8E78F4
analogous
#F4CC78 #DEF478 #A0F478
triadic
#DEF478 #78DEF4 #F478DE
tetradic
#DEF478 #78F4CC #8E78F4 #F478A0
square
#DEF478 #78F4CC #8E78F4 #F478A0
split-complementary
#DEF478 #78A0F4 #CC78F4
monochromatic
#BBDF12 #D0EF3F #DEF478 #ECF9B1 #F8FDE3

Accessibility & contrast

On white

1.21
#DEF478 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.32
#DEF478 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEF478
17.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEF478#FFFFFF#000000##000000
##DEF4781.001.2117.3217.32
#FFFFFF1.211.0021.0021.00
#00000017.3221.001.001.00
##00000017.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE96C
Deuteranopia (green-blind)
#FFEA7F
Tritanopia (blue-blind)
#E9E9D8
Achromatopsia (no color)
#E9E9E9

Design tokens & code

CSS
--color: #def478;
/* rgb */ color: rgb(222, 244, 120);
/* oklch */ color: oklch(92.6% 0.151 117.8);
Tailwind
colors: {
  custom: {
    50: '#eaf7a2',
    500: '#def478',
    950: '#000000',
  },
}
SCSS
$custom: #def478;
$custom-light: #eaf7a2;
$custom-dark: #000000;
JSON
{
  "hex": "#def478",
  "rgb": {
    "r": 222,
    "g": 244,
    "b": 120
  },
  "hsl": {
    "h": 70.645,
    "s": 84.932,
    "l": 71.373
  },
  "oklch": {
    "l": 0.92583,
    "c": 0.15132,
    "h": 117.8
  },
  "luminance": 0.81587
}

Semantic roles & 50–950 ramp

primary
#DEF478
secondary
#5A41CF
accent
#04E12B
background
#FFFFFC
surface
#FEFEF6
border
#D6D6D0
text
#16170F
muted
#858580

Preview Lab

Preview with #DEF478

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

Preview Lab → · Contrast checker → · Palette generator →

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