#DEF371#DEF371

#DEF371 is a very light, vivid yellow. Relative luminance 0.808; OKLCH L 92.3% C 0.157 H 117.2°. Best body text is #000000 at 17.16:1 contrast (WCAG AA passes).

Color values

HEX#DEF371
RGBrgb(222, 243, 113)
HSLhsl(70, 84%, 70%)
HSVhsv(70, 53%, 95%)
CMYKcmyk(8.6%, 0%, 53.5%, 4.7%)
CIE-LABlab(92.05, -24.88, 59.44)
CIE-LCHlch(92.05, 64.43, 112.71°)
OKLaboklab(92.29% -0.0716 0.1392)
OKLCHoklch(92.29% 0.157 117.2)
XYZxyz(65.1564, 80.8237, 27.7877)
Luminance0.8082 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEF371 #8671F3
analogous
#F3C771 #DEF371 #9DF371
triadic
#DEF371 #71DEF3 #F371DE
tetradic
#DEF371 #71F3C7 #8671F3 #F3719D
square
#DEF371 #71F3C7 #8671F3 #F3719D
split-complementary
#DEF371 #719DF3 #C771F3
monochromatic
#B8D712 #D1EE39 #DEF371 #EBF8A9 #F8FDE2

Accessibility & contrast

On white

1.22
#DEF371 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.16
#DEF371 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEF371
17.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEF371#FFFFFF#000000##000000
##DEF3711.001.2217.1617.16
#FFFFFF1.221.0021.0021.00
#00000017.1621.001.001.00
##00000017.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE864
Deuteranopia (green-blind)
#FFE979
Tritanopia (blue-blind)
#E9E7D6
Achromatopsia (no color)
#E8E8E8

Design tokens & code

CSS
--color: #def371;
/* rgb */ color: rgb(222, 243, 113);
/* oklch */ color: oklch(92.3% 0.157 117.2);
Tailwind
colors: {
  custom: {
    50: '#eaf79d',
    500: '#def371',
    950: '#000000',
  },
}
SCSS
$custom: #def371;
$custom-light: #eaf79d;
$custom-dark: #000000;
JSON
{
  "hex": "#def371",
  "rgb": {
    "r": 222,
    "g": 243,
    "b": 113
  },
  "hsl": {
    "h": 69.692,
    "s": 84.416,
    "l": 69.804
  },
  "oklch": {
    "l": 0.92288,
    "c": 0.15653,
    "h": 117.2
  },
  "luminance": 0.80823
}

Semantic roles & 50–950 ramp

primary
#DEF371
secondary
#533BCD
accent
#05E128
background
#FFFFFC
surface
#FEFEF5
border
#D6D6CF
text
#16170F
muted
#858580

Preview Lab

Preview with #DEF371

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

Preview Lab → · Contrast checker → · Palette generator →

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