#5A8E20#5A8E20

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

Color values

HEX#5A8E20
RGBrgb(90, 142, 32)
HSLhsl(88, 63%, 34%)
HSVhsv(88, 77%, 56%)
CMYKcmyk(36.6%, 0%, 77.5%, 44.3%)
CIE-LABlab(53.63, -35.11, 49.42)
CIE-LCHlch(53.63, 60.62, 125.39°)
OKLaboklab(58.84% -0.0992 0.11)
OKLCHoklch(58.84% 0.148 132.1)
XYZxyz(14.1500, 21.6234, 4.7944)
Luminance0.2162 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8E20 #54208E
analogous
#8E8B20 #5A8E20 #238E20
triadic
#5A8E20 #205A8E #8E205A
tetradic
#5A8E20 #208E8B #54208E #8E2023
square
#5A8E20 #208E8B #54208E #8E2023
split-complementary
#5A8E20 #20238E #8B208E
monochromatic
#1B2A09 #3A5C15 #5A8E20 #7AC02B #98D851

Accessibility & contrast

On white

3.94
#5A8E20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A8E20#FFFFFF#000000##000000
##5A8E201.003.945.325.32
#FFFFFF3.941.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#948306
Deuteranopia (green-blind)
#8D7F2B
Tritanopia (blue-blind)
#5B8879
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5a8e20;
/* rgb */ color: rgb(90, 142, 32);
/* oklch */ color: oklch(58.8% 0.148 132.1);
Tailwind
colors: {
  custom: {
    50: '#8daf64',
    500: '#5a8e20',
    950: '#000000',
  },
}
SCSS
$custom: #5a8e20;
$custom-light: #8daf64;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8e20",
  "rgb": {
    "r": 90,
    "g": 142,
    "b": 32
  },
  "hsl": {
    "h": 88.364,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.58842,
    "c": 0.14817,
    "h": 132.1
  },
  "luminance": 0.21624
}

Semantic roles & 50–950 ramp

primary
#5A8E20
secondary
#824FBB
accent
#42E68F
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5A8E20

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

Preview Lab → · Contrast checker → · Palette generator →

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