#D8F971#D8F971

#D8F971 is a very light, vivid yellow-green. Relative luminance 0.835; OKLCH L 93.1% C 0.166 H 121.1°. Best body text is #000000 at 17.71:1 contrast (WCAG AA passes).

Color values

HEX#D8F971
RGBrgb(216, 249, 113)
HSLhsl(75, 92%, 71%)
HSVhsv(75, 55%, 98%)
CMYKcmyk(13.3%, 0%, 54.6%, 2.4%)
CIE-LABlab(93.25, -30.00, 60.71)
CIE-LCHlch(93.25, 67.72, 116.29°)
OKLaboklab(93.15% -0.0856 0.142)
OKLCHoklch(93.15% 0.166 121.1)
XYZxyz(65.1758, 83.5426, 28.3113)
Luminance0.8354 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8F971 #9271F9
analogous
#F9D671 #D8F971 #94F971
triadic
#D8F971 #71D8F9 #F971D8
tetradic
#D8F971 #71F9D6 #9271F9 #F97194
square
#D8F971 #71F9D6 #9271F9 #F97194
split-complementary
#D8F971 #7194F9 #D671F9
monochromatic
#B0E60A #C8F736 #D8F971 #E8FBAC #F7FEE2

Accessibility & contrast

On white

1.19
#D8F971 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.71
#D8F971 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8F971
17.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8F971#FFFFFF#000000##000000
##D8F9711.001.1917.7117.71
#FFFFFF1.191.0021.0021.00
#00000017.7121.001.001.00
##00000017.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC63
Deuteranopia (green-blind)
#FFEC79
Tritanopia (blue-blind)
#E2EEDB
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #d8f971;
/* rgb */ color: rgb(216, 249, 113);
/* oklch */ color: oklch(93.1% 0.166 121.1);
Tailwind
colors: {
  custom: {
    50: '#e6fb9e',
    500: '#d8f971',
    950: '#000000',
  },
}
SCSS
$custom: #d8f971;
$custom-light: #e6fb9e;
$custom-dark: #000000;
JSON
{
  "hex": "#d8f971",
  "rgb": {
    "r": 216,
    "g": 249,
    "b": 113
  },
  "hsl": {
    "h": 74.559,
    "s": 91.892,
    "l": 70.98
  },
  "oklch": {
    "l": 0.93146,
    "c": 0.16585,
    "h": 121.1
  },
  "luminance": 0.83543
}

Semantic roles & 50–950 ramp

primary
#D8F971
secondary
#5F3AD4
accent
#00E638
background
#FEFFFC
surface
#FDFFF5
border
#D5D7CF
text
#16170F
muted
#848580

Preview Lab

Preview with #D8F971

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

Preview Lab → · Contrast checker → · Palette generator →

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