#8EB21F#8EB21F

#8EB21F is a light, vivid yellow-green. Relative luminance 0.377; OKLCH L 71.2% C 0.167 H 123.4°. Best body text is #000000 at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#8EB21F
RGBrgb(142, 178, 31)
HSLhsl(75, 70%, 41%)
HSVhsv(75, 83%, 70%)
CMYKcmyk(20.2%, 0%, 82.6%, 30.2%)
CIE-LABlab(67.79, -31.18, 63.85)
CIE-LCHlch(67.79, 71.06, 116.03°)
OKLaboklab(71.18% -0.0918 0.1389)
OKLCHoklch(71.18% 0.167 123.4)
XYZxyz(27.3234, 37.6903, 7.1315)
Luminance0.3769 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8EB21F #431FB2
analogous
#B28C1F #8EB21F #44B21F
triadic
#8EB21F #1F8EB2 #B21F8E
tetradic
#8EB21F #1FB28C #431FB2 #B21F44
square
#8EB21F #1FB28C #431FB2 #B21F44
split-complementary
#8EB21F #1F44B2 #8C1FB2
monochromatic
#3B4A0D #647E16 #8EB21F #B2DB33 #C6E567

Accessibility & contrast

On white

2.46
#8EB21F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.54
#8EB21F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8EB21F
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8EB21F#FFFFFF#000000##000000
##8EB21F1.002.468.548.54
#FFFFFF2.461.0021.0021.00
#0000008.5421.001.001.00
##0000008.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA600
Deuteranopia (green-blind)
#B8A530
Tritanopia (blue-blind)
#96A998
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #8eb21f;
/* rgb */ color: rgb(142, 178, 31);
/* oklch */ color: oklch(71.2% 0.167 123.4);
Tailwind
colors: {
  custom: {
    50: '#b3c96a',
    500: '#8eb21f',
    950: '#000000',
  },
}
SCSS
$custom: #8eb21f;
$custom-light: #b3c96a;
$custom-dark: #000000;
JSON
{
  "hex": "#8eb21f",
  "rgb": {
    "r": 142,
    "g": 178,
    "b": 31
  },
  "hsl": {
    "h": 74.694,
    "s": 70.335,
    "l": 40.98
  },
  "oklch": {
    "l": 0.71177,
    "c": 0.16651,
    "h": 123.4
  },
  "luminance": 0.37691
}

Semantic roles & 50–950 ramp

primary
#8EB21F
secondary
#7C63CA
accent
#3BED66
background
#FBFCF6
surface
#F6F8EC
border
#D0D1C7
text
#111307
muted
#80827A

Preview Lab

Preview with #8EB21F

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

Preview Lab → · Contrast checker → · Palette generator →

#8EB21F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva