#5A8520#5A8520

#5A8520 is a mid, vivid yellow-green. Relative luminance 0.191; OKLCH L 56.5% C 0.136 H 130.2°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#5A8520
RGBrgb(90, 133, 32)
HSLhsl(86, 61%, 32%)
HSVhsv(86, 76%, 52%)
CMYKcmyk(32.3%, 0%, 75.9%, 47.8%)
CIE-LABlab(50.75, -30.99, 46.63)
CIE-LCHlch(50.75, 55.99, 123.61°)
OKLaboklab(56.5% -0.0881 0.1042)
OKLCHoklch(56.5% 0.136 130.2)
XYZxyz(12.8646, 19.0526, 4.3659)
Luminance0.1905 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8520 #4B2085
analogous
#857E20 #5A8520 #278520
triadic
#5A8520 #205A85 #85205A
tetradic
#5A8520 #20857E #4B2085 #852027
square
#5A8520 #20857E #4B2085 #852027
split-complementary
#5A8520 #202785 #7E2085
monochromatic
#172208 #395414 #5A8520 #7BB62C #9AD44C

Accessibility & contrast

On white

4.37
#5A8520 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#5A8520 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8520
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8520#FFFFFF#000000##000000
##5A85201.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B0C
Deuteranopia (green-blind)
#85782A
Tritanopia (blue-blind)
#5C7F72
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5a8520;
/* rgb */ color: rgb(90, 133, 32);
/* oklch */ color: oklch(56.5% 0.136 130.2);
Tailwind
colors: {
  custom: {
    50: '#8ca963',
    500: '#5a8520',
    950: '#000000',
  },
}
SCSS
$custom: #5a8520;
$custom-light: #8ca963;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8520",
  "rgb": {
    "r": 90,
    "g": 133,
    "b": 32
  },
  "hsl": {
    "h": 85.545,
    "s": 61.212,
    "l": 32.353
  },
  "oklch": {
    "l": 0.56497,
    "c": 0.13642,
    "h": 130.2
  },
  "luminance": 0.19053
}

Semantic roles & 50–950 ramp

primary
#5A8520
secondary
#784AB7
accent
#43E488
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F06
muted
#7D7F7A

Preview Lab

Preview with #5A8520

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

Preview Lab → · Contrast checker → · Palette generator →

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