#D2F871#D2F871

#D2F871 is a very light, vivid yellow-green. Relative luminance 0.820; OKLCH L 92.5% C 0.167 H 122.8°. Best body text is #000000 at 17.41:1 contrast (WCAG AA passes).

Color values

HEX#D2F871
RGBrgb(210, 248, 113)
HSLhsl(77, 91%, 71%)
HSVhsv(77, 54%, 97%)
CMYKcmyk(15.3%, 0%, 54.4%, 2.7%)
CIE-LABlab(92.59, -31.81, 59.84)
CIE-LCHlch(92.59, 67.77, 117.99°)
OKLaboklab(92.51% -0.0904 0.1403)
OKLCHoklch(92.51% 0.167 122.8)
XYZxyz(63.1267, 82.0285, 28.1270)
Luminance0.8203 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2F871 #9771F8
analogous
#F8DA71 #D2F871 #8EF871
triadic
#D2F871 #71D2F8 #F871D2
tetradic
#D2F871 #71F8DA #9771F8 #F8718E
square
#D2F871 #71F8DA #9771F8 #F8718E
split-complementary
#D2F871 #718EF8 #DA71F8
monochromatic
#A7E30B #C0F537 #D2F871 #E4FBAB #F6FEE2

Accessibility & contrast

On white

1.21
#D2F871 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.41
#D2F871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2F871
17.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2F871#FFFFFF#000000##000000
##D2F8711.001.2117.4117.41
#FFFFFF1.211.0021.0021.00
#00000017.4121.001.001.00
##00000017.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB63
Deuteranopia (green-blind)
#FFEA79
Tritanopia (blue-blind)
#DBEDDA
Achromatopsia (no color)
#EAEAEA

Design tokens & code

CSS
--color: #d2f871;
/* rgb */ color: rgb(210, 248, 113);
/* oklch */ color: oklch(92.5% 0.167 122.8);
Tailwind
colors: {
  custom: {
    50: '#e2fa9e',
    500: '#d2f871',
    950: '#000000',
  },
}
SCSS
$custom: #d2f871;
$custom-light: #e2fa9e;
$custom-dark: #000000;
JSON
{
  "hex": "#d2f871",
  "rgb": {
    "r": 210,
    "g": 248,
    "b": 113
  },
  "hsl": {
    "h": 76.889,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.92512,
    "c": 0.16684,
    "h": 122.8
  },
  "luminance": 0.82029
}

Semantic roles & 50–950 ramp

primary
#D2F871
secondary
#653AD3
accent
#00E641
background
#FEFFFC
surface
#FCFFF5
border
#D5D7CF
text
#16170F
muted
#848580

Preview Lab

Preview with #D2F871

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

Preview Lab → · Contrast checker → · Palette generator →

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