#5A8D40#5A8D40

#5A8D40 is a mid, vivid yellow-green. Relative luminance 0.216; OKLCH L 58.9% C 0.122 H 136.2°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#5A8D40
RGBrgb(90, 141, 64)
HSLhsl(100, 38%, 40%)
HSVhsv(100, 55%, 55%)
CMYKcmyk(36.2%, 0%, 54.6%, 44.7%)
CIE-LABlab(53.59, -31.78, 35.37)
CIE-LCHlch(53.59, 47.56, 131.94°)
OKLaboklab(58.91% -0.0877 0.0842)
OKLCHoklch(58.91% 0.122 136.2)
XYZxyz(14.6664, 21.5929, 8.2446)
Luminance0.2159 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8D40 #73408D
analogous
#818D40 #5A8D40 #408D4C
triadic
#5A8D40 #405A8D #8D405A
tetradic
#5A8D40 #40818D #73408D #8D4C40
square
#5A8D40 #40818D #73408D #8D4C40
split-complementary
#5A8D40 #4C408D #8D4081
monochromatic
#24391A #3F632D #5A8D40 #76B357 #99C681

Accessibility & contrast

On white

3.95
#5A8D40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#5A8D40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8D40
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8D40#FFFFFF#000000##000000
##5A8D401.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#928339
Deuteranopia (green-blind)
#8A7E45
Tritanopia (blue-blind)
#59887C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5a8d40;
/* rgb */ color: rgb(90, 141, 64);
/* oklch */ color: oklch(58.9% 0.122 136.2);
Tailwind
colors: {
  custom: {
    50: '#8cae77',
    500: '#5a8d40',
    950: '#000000',
  },
}
SCSS
$custom: #5a8d40;
$custom-light: #8cae77;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8d40",
  "rgb": {
    "r": 90,
    "g": 141,
    "b": 64
  },
  "hsl": {
    "h": 99.74,
    "s": 37.561,
    "l": 40.196
  },
  "oklch": {
    "l": 0.58908,
    "c": 0.12153,
    "h": 136.2
  },
  "luminance": 0.21594
}

Semantic roles & 50–950 ramp

primary
#5A8D40
secondary
#9D78B0
accent
#5ACEA7
background
#F8FAF7
surface
#F0F4ED
border
#CBCEC8
text
#0C1009
muted
#7D7F7B

Preview Lab

Preview with #5A8D40

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

Preview Lab → · Contrast checker → · Palette generator →

#5A8D40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva