#E2F871#E2F871

#E2F871 is a very light, vivid yellow. Relative luminance 0.845; OKLCH L 93.7% C 0.161 H 117.3°. Best body text is #000000 at 17.90:1 contrast (WCAG AA passes).

Color values

HEX#E2F871
RGBrgb(226, 248, 113)
HSLhsl(70, 91%, 71%)
HSVhsv(70, 54%, 97%)
CMYKcmyk(8.9%, 0%, 54.4%, 2.7%)
CIE-LABlab(93.67, -25.70, 61.37)
CIE-LCHlch(93.67, 66.53, 112.72°)
OKLaboklab(93.65% -0.0741 0.1433)
OKLCHoklch(93.65% 0.161 117.3)
XYZxyz(67.9131, 84.4965, 28.3514)
Luminance0.8450 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2F871 #8771F8
analogous
#F8CA71 #E2F871 #9EF871
triadic
#E2F871 #71E2F8 #F871E2
tetradic
#E2F871 #71F8CA #8771F8 #F8719E
square
#E2F871 #71F8CA #8771F8 #F8719E
split-complementary
#E2F871 #719EF8 #CA71F8
monochromatic
#C0E30B #D6F537 #E2F871 #EEFBAB #F9FEE2

Accessibility & contrast

On white

1.17
#E2F871 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.90
#E2F871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2F871
17.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2F871#FFFFFF#000000##000000
##E2F8711.001.1717.9017.90
#FFFFFF1.171.0021.0021.00
#00000017.9021.001.001.00
##00000017.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC63
Deuteranopia (green-blind)
#FFEE79
Tritanopia (blue-blind)
#EEECDA
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #e2f871;
/* rgb */ color: rgb(226, 248, 113);
/* oklch */ color: oklch(93.7% 0.161 117.3);
Tailwind
colors: {
  custom: {
    50: '#edfa9e',
    500: '#e2f871',
    950: '#000000',
  },
}
SCSS
$custom: #e2f871;
$custom-light: #edfa9e;
$custom-dark: #000000;
JSON
{
  "hex": "#e2f871",
  "rgb": {
    "r": 226,
    "g": 248,
    "b": 113
  },
  "hsl": {
    "h": 69.778,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.9365,
    "c": 0.16132,
    "h": 117.3
  },
  "luminance": 0.84496
}

Semantic roles & 50–950 ramp

primary
#E2F871
secondary
#533AD3
accent
#00E625
background
#FFFFFC
surface
#FEFFF5
border
#D6D7CF
text
#17170F
muted
#858580

Preview Lab

Preview with #E2F871

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

Preview Lab → · Contrast checker → · Palette generator →

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