#DEF171#DEF171

#DEF171 is a very light, vivid yellow. Relative luminance 0.796; OKLCH L 91.9% C 0.154 H 116.5°. Best body text is #000000 at 16.93:1 contrast (WCAG AA passes).

Color values

HEX#DEF171
RGBrgb(222, 241, 113)
HSLhsl(69, 82%, 69%)
HSVhsv(69, 53%, 95%)
CMYKcmyk(7.9%, 0%, 53.1%, 5.5%)
CIE-LABlab(91.52, -23.93, 58.82)
CIE-LCHlch(91.52, 63.50, 112.13°)
OKLaboklab(91.86% -0.0689 0.1379)
OKLCHoklch(91.86% 0.154 116.5)
XYZxyz(64.5611, 79.6332, 27.5892)
Luminance0.7963 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEF171 #8471F1
analogous
#F1C471 #DEF171 #9EF171
triadic
#DEF171 #71DEF1 #F171DE
tetradic
#DEF171 #71F1C4 #8471F1 #F1719E
square
#DEF171 #71F1C4 #8471F1 #F1719E
split-complementary
#DEF171 #719EF1 #C471F1
monochromatic
#B7D315 #D1EC39 #DEF171 #EBF6A9 #F8FCE0

Accessibility & contrast

On white

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

On black

16.93
#DEF171 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEF171
16.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEF171#FFFFFF#000000##000000
##DEF1711.001.2416.9316.93
#FFFFFF1.241.0021.0021.00
#00000016.9321.001.001.00
##00000016.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE664
Deuteranopia (green-blind)
#FEE878
Tritanopia (blue-blind)
#EAE5D4
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #def171;
/* rgb */ color: rgb(222, 241, 113);
/* oklch */ color: oklch(91.9% 0.154 116.5);
Tailwind
colors: {
  custom: {
    50: '#eaf59d',
    500: '#def171',
    950: '#000000',
  },
}
SCSS
$custom: #def171;
$custom-light: #eaf59d;
$custom-dark: #000000;
JSON
{
  "hex": "#def171",
  "rgb": {
    "r": 222,
    "g": 241,
    "b": 113
  },
  "hsl": {
    "h": 68.906,
    "s": 82.051,
    "l": 69.412
  },
  "oklch": {
    "l": 0.91861,
    "c": 0.15413,
    "h": 116.5
  },
  "luminance": 0.79632
}

Semantic roles & 50–950 ramp

primary
#DEF171
secondary
#513CCA
accent
#07DE27
background
#FFFFFC
surface
#FEFEF5
border
#D6D6CF
text
#16170F
muted
#858580

Preview Lab

Preview with #DEF171

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

Preview Lab → · Contrast checker → · Palette generator →

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