#9ECC42#9ECC42

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

Color values

HEX#9ECC42
RGBrgb(158, 204, 66)
HSLhsl(80, 58%, 53%)
HSVhsv(80, 68%, 80%)
CMYKcmyk(22.5%, 0%, 67.6%, 20%)
CIE-LABlab(76.59, -35.06, 61.06)
CIE-LCHlch(76.59, 70.41, 119.87°)
OKLaboklab(78.62% -0.1006 0.1382)
OKLCHoklch(78.62% 0.171 126.1)
XYZxyz(36.6769, 50.8476, 13.0355)
Luminance0.5085 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9ECC42 #7042CC
analogous
#CCB542 #9ECC42 #59CC42
triadic
#9ECC42 #429ECC #CC429E
tetradic
#9ECC42 #42CCB5 #7042CC #CC4259
square
#9ECC42 #42CCB5 #7042CC #CC4259
split-complementary
#9ECC42 #4259CC #B542CC
monochromatic
#58741F #7CA42C #9ECC42 #B7D972 #CFE6A2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9ECC42#FFFFFF#000000##000000
##9ECC421.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)
#D7BF2E
Deuteranopia (green-blind)
#D0BC4D
Tritanopia (blue-blind)
#A4C3B0
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #9ecc42;
/* rgb */ color: rgb(158, 204, 66);
/* oklch */ color: oklch(78.6% 0.171 126.1);
Tailwind
colors: {
  custom: {
    50: '#bedb7e',
    500: '#9ecc42',
    950: '#000000',
  },
}
SCSS
$custom: #9ecc42;
$custom-light: #bedb7e;
$custom-dark: #000000;
JSON
{
  "hex": "#9ecc42",
  "rgb": {
    "r": 158,
    "g": 204,
    "b": 66
  },
  "hsl": {
    "h": 80,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.78622,
    "c": 0.1709,
    "h": 126.1
  },
  "luminance": 0.50848
}

Semantic roles & 50–950 ramp

primary
#9ECC42
secondary
#4D357D
accent
#47E17A
background
#FDFEFB
surface
#F9FCF2
border
#D2D5CC
text
#12150A
muted
#82847D

Preview Lab

Preview with #9ECC42

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

Preview Lab → · Contrast checker → · Palette generator →

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