#DEF17A#DEF17A

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

Color values

HEX#DEF17A
RGBrgb(222, 241, 122)
HSLhsl(70, 81%, 71%)
HSVhsv(70, 49%, 95%)
CMYKcmyk(7.9%, 0%, 49.4%, 5.5%)
CIE-LABlab(91.62, -23.13, 54.84)
CIE-LCHlch(91.62, 59.52, 112.87°)
OKLaboklab(91.97% -0.0658 0.13)
OKLCHoklch(91.97% 0.146 116.8)
XYZxyz(65.0932, 79.8460, 30.3913)
Luminance0.7984 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEF17A #8D7AF1
analogous
#F1C87A #DEF17A #A2F17A
triadic
#DEF17A #7ADEF1 #F17ADE
tetradic
#DEF17A #7AF1C8 #8D7AF1 #F17AA2
square
#DEF17A #7AF1C8 #8D7AF1 #F17AA2
split-complementary
#DEF17A #7AA2F1 #C87AF1
monochromatic
#BBDA17 #D0EB43 #DEF17A #ECF7B1 #F8FCE3

Accessibility & contrast

On white

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

On black

16.97
#DEF17A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEF17A
16.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEF17A#FFFFFF#000000##000000
##DEF17A1.001.2416.9716.97
#FFFFFF1.241.0021.0021.00
#00000016.9721.001.001.00
##00000016.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE66F
Deuteranopia (green-blind)
#FDE881
Tritanopia (blue-blind)
#E9E6D6
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #def17a;
/* rgb */ color: rgb(222, 241, 122);
/* oklch */ color: oklch(92.0% 0.146 116.8);
Tailwind
colors: {
  custom: {
    50: '#eaf5a3',
    500: '#def17a',
    950: '#000000',
  },
}
SCSS
$custom: #def17a;
$custom-light: #eaf5a3;
$custom-dark: #000000;
JSON
{
  "hex": "#def17a",
  "rgb": {
    "r": 222,
    "g": 241,
    "b": 122
  },
  "hsl": {
    "h": 69.58,
    "s": 80.952,
    "l": 71.176
  },
  "oklch": {
    "l": 0.91968,
    "c": 0.14573,
    "h": 116.8
  },
  "luminance": 0.79845
}

Semantic roles & 50–950 ramp

primary
#DEF17A
secondary
#5A44CB
accent
#08DD2A
background
#FFFFFC
surface
#FEFEF6
border
#D6D6D0
text
#16170F
muted
#858580

Preview Lab

Preview with #DEF17A

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

Preview Lab → · Contrast checker → · Palette generator →

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