#5A8920#5A8920

#5A8920 is a mid, vivid yellow-green. Relative luminance 0.202; OKLCH L 57.5% C 0.142 H 131.1°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#5A8920
RGBrgb(90, 137, 32)
HSLhsl(87, 62%, 33%)
HSVhsv(87, 77%, 54%)
CMYKcmyk(34.3%, 0%, 76.6%, 46.3%)
CIE-LABlab(52.03, -32.84, 47.88)
CIE-LCHlch(52.03, 58.06, 124.45°)
OKLaboklab(57.54% -0.0931 0.1068)
OKLCHoklch(57.54% 0.142 131.1)
XYZxyz(13.4227, 20.1688, 4.5520)
Luminance0.2017 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8920 #4F2089
analogous
#898320 #5A8920 #268920
triadic
#5A8920 #205A89 #89205A
tetradic
#5A8920 #208983 #4F2089 #892026
square
#5A8920 #208983 #4F2089 #892026
split-complementary
#5A8920 #202689 #832089
monochromatic
#192609 #395714 #5A8920 #7BBB2C #99D64E

Accessibility & contrast

On white

4.17
#5A8920 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#5A8920 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8920
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8920#FFFFFF#000000##000000
##5A89201.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E09
Deuteranopia (green-blind)
#897B2A
Tritanopia (blue-blind)
#5C8375
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5a8920;
/* rgb */ color: rgb(90, 137, 32);
/* oklch */ color: oklch(57.5% 0.142 131.1);
Tailwind
colors: {
  custom: {
    50: '#8dab64',
    500: '#5a8920',
    950: '#000000',
  },
}
SCSS
$custom: #5a8920;
$custom-light: #8dab64;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8920",
  "rgb": {
    "r": 90,
    "g": 137,
    "b": 32
  },
  "hsl": {
    "h": 86.857,
    "s": 62.13,
    "l": 33.137
  },
  "oklch": {
    "l": 0.57539,
    "c": 0.14168,
    "h": 131.1
  },
  "luminance": 0.20169
}

Semantic roles & 50–950 ramp

primary
#5A8920
secondary
#7D4CB9
accent
#43E58B
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D1006
muted
#7D7F7A

Preview Lab

Preview with #5A8920

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

Preview Lab → · Contrast checker → · Palette generator →

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