#DEF178#DEF178

#DEF178 is a very light, vivid yellow. Relative luminance 0.798; OKLCH L 91.9% C 0.148 H 116.8°. Best body text is #000000 at 16.96:1 contrast (WCAG AA passes).

Color values

HEX#DEF178
RGBrgb(222, 241, 120)
HSLhsl(69, 81%, 71%)
HSVhsv(69, 50%, 95%)
CMYKcmyk(7.9%, 0%, 50.2%, 5.5%)
CIE-LABlab(91.59, -23.32, 55.73)
CIE-LCHlch(91.59, 60.41, 112.70°)
OKLaboklab(91.94% -0.0665 0.1318)
OKLCHoklch(91.94% 0.148 116.8)
XYZxyz(64.9705, 79.7969, 29.7453)
Luminance0.7980 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEF178 #8B78F1
analogous
#F1C778 #DEF178 #A1F178
triadic
#DEF178 #78DEF1 #F178DE
tetradic
#DEF178 #78F1C7 #8B78F1 #F178A1
square
#DEF178 #78F1C7 #8B78F1 #F178A1
split-complementary
#DEF178 #78A1F1 #C778F1
monochromatic
#BAD816 #D0EB41 #DEF178 #ECF7AF #F8FCE3

Accessibility & contrast

On white

1.24
#DEF178 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.96
#DEF178 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEF178
16.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEF178#FFFFFF#000000##000000
##DEF1781.001.2416.9616.96
#FFFFFF1.241.0021.0021.00
#00000016.9621.001.001.00
##00000016.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE66D
Deuteranopia (green-blind)
#FDE87F
Tritanopia (blue-blind)
#E9E6D5
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #def178;
/* rgb */ color: rgb(222, 241, 120);
/* oklch */ color: oklch(91.9% 0.148 116.8);
Tailwind
colors: {
  custom: {
    50: '#eaf5a2',
    500: '#def178',
    950: '#000000',
  },
}
SCSS
$custom: #def178;
$custom-light: #eaf5a2;
$custom-dark: #000000;
JSON
{
  "hex": "#def178",
  "rgb": {
    "r": 222,
    "g": 241,
    "b": 120
  },
  "hsl": {
    "h": 69.421,
    "s": 81.208,
    "l": 70.784
  },
  "oklch": {
    "l": 0.91943,
    "c": 0.14764,
    "h": 116.8
  },
  "luminance": 0.79796
}

Semantic roles & 50–950 ramp

primary
#DEF178
secondary
#5842CB
accent
#08DE29
background
#FFFFFC
surface
#FEFEF6
border
#D6D6D0
text
#16170F
muted
#858580

Preview Lab

Preview with #DEF178

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

Preview Lab → · Contrast checker → · Palette generator →

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