#5A8A20#5A8A20

#5A8A20 is a mid, vivid yellow-green. Relative luminance 0.205; OKLCH L 57.8% C 0.143 H 131.3°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#5A8A20
RGBrgb(90, 138, 32)
HSLhsl(87, 62%, 33%)
HSVhsv(87, 77%, 54%)
CMYKcmyk(34.8%, 0%, 76.8%, 45.9%)
CIE-LABlab(52.35, -33.30, 48.19)
CIE-LCHlch(52.35, 58.57, 124.65°)
OKLaboklab(57.8% -0.0943 0.1074)
OKLCHoklch(57.8% 0.143 131.3)
XYZxyz(13.5655, 20.4544, 4.5996)
Luminance0.2046 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8A20 #50208A
analogous
#8A8520 #5A8A20 #258A20
triadic
#5A8A20 #205A8A #8A205A
tetradic
#5A8A20 #208A85 #50208A #8A2025
square
#5A8A20 #208A85 #50208A #8A2025
split-complementary
#5A8A20 #20258A #85208A
monochromatic
#192709 #3A5814 #5A8A20 #7ABC2C #99D64E

Accessibility & contrast

On white

4.12
#5A8A20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#5A8A20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8A20
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8A20#FFFFFF#000000##000000
##5A8A201.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F08
Deuteranopia (green-blind)
#8A7C2B
Tritanopia (blue-blind)
#5C8476
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5a8a20;
/* rgb */ color: rgb(90, 138, 32);
/* oklch */ color: oklch(57.8% 0.143 131.3);
Tailwind
colors: {
  custom: {
    50: '#8dac64',
    500: '#5a8a20',
    950: '#000000',
  },
}
SCSS
$custom: #5a8a20;
$custom-light: #8dac64;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8a20",
  "rgb": {
    "r": 90,
    "g": 138,
    "b": 32
  },
  "hsl": {
    "h": 87.17,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.57799,
    "c": 0.14298,
    "h": 131.3
  },
  "luminance": 0.20455
}

Semantic roles & 50–950 ramp

primary
#5A8A20
secondary
#7E4DB9
accent
#42E58C
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D1006
muted
#7D7F7A

Preview Lab

Preview with #5A8A20

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

Preview Lab → · Contrast checker → · Palette generator →

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