#9ECC40#9ECC40

#9ECC40 is a light, vivid yellow-green. Relative luminance 0.508; OKLCH L 78.6% C 0.172 H 125.9°. Best body text is #000000 at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#9ECC40
RGBrgb(158, 204, 64)
HSLhsl(80, 58%, 53%)
HSVhsv(80, 69%, 80%)
CMYKcmyk(22.5%, 0%, 68.6%, 20%)
CIE-LABlab(76.57, -35.19, 61.81)
CIE-LCHlch(76.57, 71.13, 119.66°)
OKLaboklab(78.61% -0.1011 0.1395)
OKLCHoklch(78.61% 0.172 125.9)
XYZxyz(36.6190, 50.8245, 12.7304)
Luminance0.5082 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9ECC40 #6E40CC
analogous
#CCB440 #9ECC40 #58CC40
triadic
#9ECC40 #409ECC #CC409E
tetradic
#9ECC40 #40CCB4 #6E40CC #CC4058
square
#9ECC40 #40CCB4 #6E40CC #CC4058
split-complementary
#9ECC40 #4058CC #B440CC
monochromatic
#57731F #7CA32C #9ECC40 #B7D970 #CFE6A1

Accessibility & contrast

On white

1.88
#9ECC40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.17
#9ECC40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9ECC40
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9ECC40#FFFFFF#000000##000000
##9ECC401.001.8811.1711.17
#FFFFFF1.881.0021.0021.00
#00000011.1721.001.001.00
##00000011.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BF2A
Deuteranopia (green-blind)
#D0BC4C
Tritanopia (blue-blind)
#A5C3B0
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #9ecc40;
/* rgb */ color: rgb(158, 204, 64);
/* oklch */ color: oklch(78.6% 0.172 125.9);
Tailwind
colors: {
  custom: {
    50: '#bedb7d',
    500: '#9ecc40',
    950: '#000000',
  },
}
SCSS
$custom: #9ecc40;
$custom-light: #bedb7d;
$custom-dark: #000000;
JSON
{
  "hex": "#9ecc40",
  "rgb": {
    "r": 158,
    "g": 204,
    "b": 64
  },
  "hsl": {
    "h": 79.714,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.78606,
    "c": 0.17226,
    "h": 125.9
  },
  "luminance": 0.50825
}

Semantic roles & 50–950 ramp

primary
#9ECC40
secondary
#4C347C
accent
#47E179
background
#FDFEFB
surface
#F9FCF2
border
#D2D5CC
text
#12150A
muted
#82847D

Preview Lab

Preview with #9ECC40

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

Preview Lab → · Contrast checker → · Palette generator →

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