#8ECC40#8ECC40

#8ECC40 is a light, vivid yellow-green. Relative luminance 0.493; OKLCH L 77.6% C 0.180 H 130.4°. Best body text is #000000 at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#8ECC40
RGBrgb(142, 204, 64)
HSLhsl(87, 58%, 53%)
HSVhsv(87, 69%, 80%)
CMYKcmyk(30.4%, 0%, 68.6%, 20%)
CIE-LABlab(75.64, -41.21, 60.56)
CIE-LCHlch(75.64, 73.25, 124.23°)
OKLaboklab(77.61% -0.1166 0.1371)
OKLCHoklch(77.61% 0.18 130.4)
XYZxyz(33.6734, 49.3056, 12.5923)
Luminance0.4931 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8ECC40 #7E40CC
analogous
#CCC440 #8ECC40 #48CC40
triadic
#8ECC40 #408ECC #CC408E
tetradic
#8ECC40 #40CCC4 #7E40CC #CC4048
square
#8ECC40 #40CCC4 #7E40CC #CC4048
split-complementary
#8ECC40 #4048CC #C440CC
monochromatic
#4E731F #6EA32C #8ECC40 #ABD970 #C7E6A1

Accessibility & contrast

On white

1.93
#8ECC40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.86
#8ECC40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8ECC40
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8ECC40#FFFFFF#000000##000000
##8ECC401.001.9310.8610.86
#FFFFFF1.931.0021.0021.00
#00000010.8621.001.001.00
##00000010.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BD2B
Deuteranopia (green-blind)
#CDB94C
Tritanopia (blue-blind)
#91C3B0
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #8ecc40;
/* rgb */ color: rgb(142, 204, 64);
/* oklch */ color: oklch(77.6% 0.180 130.4);
Tailwind
colors: {
  custom: {
    50: '#b3dc7c',
    500: '#8ecc40',
    950: '#000000',
  },
}
SCSS
$custom: #8ecc40;
$custom-light: #b3dc7c;
$custom-dark: #000000;
JSON
{
  "hex": "#8ecc40",
  "rgb": {
    "r": 142,
    "g": 204,
    "b": 64
  },
  "hsl": {
    "h": 86.571,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.77606,
    "c": 0.18003,
    "h": 130.4
  },
  "luminance": 0.49307
}

Semantic roles & 50–950 ramp

primary
#8ECC40
secondary
#B095D2
accent
#47E18B
background
#FBFDF7
surface
#F6FBEE
border
#D0D4C9
text
#11150A
muted
#80837C

Preview Lab

Preview with #8ECC40

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

Preview Lab → · Contrast checker → · Palette generator →

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