#8EB42F#8EB42F

#8EB42F is a light, vivid yellow-green. Relative luminance 0.386; OKLCH L 71.7% C 0.161 H 124.5°. Best body text is #000000 at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#8EB42F
RGBrgb(142, 180, 47)
HSLhsl(77, 59%, 45%)
HSVhsv(77, 74%, 71%)
CMYKcmyk(21.1%, 0%, 73.9%, 29.4%)
CIE-LABlab(68.46, -31.40, 59.59)
CIE-LCHlch(68.46, 67.36, 117.78°)
OKLaboklab(71.74% -0.0912 0.1326)
OKLCHoklch(71.74% 0.161 124.5)
XYZxyz(27.9899, 38.5983, 8.6644)
Luminance0.3860 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8EB42F #552FB4
analogous
#B4982F #8EB42F #4CB42F
triadic
#8EB42F #2F8EB4 #B42F8E
tetradic
#8EB42F #2FB498 #552FB4 #B42F4C
square
#8EB42F #2FB498 #552FB4 #B42F4C
split-complementary
#8EB42F #2F4CB4 #982FB4
monochromatic
#415316 #688322 #8EB42F #ACD14F #C3DE80

Accessibility & contrast

On white

2.41
#8EB42F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.72
#8EB42F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8EB42F
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8EB42F#FFFFFF#000000##000000
##8EB42F1.002.418.728.72
#FFFFFF2.411.0021.0021.00
#0000008.7221.001.001.00
##0000008.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA814
Deuteranopia (green-blind)
#B9A73B
Tritanopia (blue-blind)
#95AB9B
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #8eb42f;
/* rgb */ color: rgb(142, 180, 47);
/* oklch */ color: oklch(71.7% 0.161 124.5);
Tailwind
colors: {
  custom: {
    50: '#b3ca71',
    500: '#8eb42f',
    950: '#000000',
  },
}
SCSS
$custom: #8eb42f;
$custom-light: #b3ca71;
$custom-dark: #000000;
JSON
{
  "hex": "#8eb42f",
  "rgb": {
    "r": 142,
    "g": 180,
    "b": 47
  },
  "hsl": {
    "h": 77.143,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.71742,
    "c": 0.1609,
    "h": 124.5
  },
  "luminance": 0.38599
}

Semantic roles & 50–950 ramp

primary
#8EB42F
secondary
#8F78C7
accent
#46E273
background
#FBFCF7
surface
#F6F8ED
border
#D0D1C8
text
#111308
muted
#80827B

Preview Lab

Preview with #8EB42F

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

Preview Lab → · Contrast checker → · Palette generator →

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