#5A8020#5A8020

#5A8020 is a mid, vivid yellow-green. Relative luminance 0.177; OKLCH L 55.2% C 0.130 H 129.0°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#5A8020
RGBrgb(90, 128, 32)
HSLhsl(84, 60%, 31%)
HSVhsv(84, 75%, 50%)
CMYKcmyk(29.7%, 0%, 75%, 49.8%)
CIE-LABlab(49.15, -28.63, 45.06)
CIE-LCHlch(49.15, 53.38, 122.43°)
OKLaboklab(55.2% -0.0816 0.1009)
OKLCHoklch(55.2% 0.13 129)
XYZxyz(12.1963, 17.7160, 4.1432)
Luminance0.1772 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8020 #462080
analogous
#807620 #5A8020 #2A8020
triadic
#5A8020 #205A80 #80205A
tetradic
#5A8020 #208076 #462080 #80202A
square
#5A8020 #208076 #462080 #80202A
split-complementary
#5A8020 #202A80 #762080
monochromatic
#151E08 #384F14 #5A8020 #7CB12C #9BD149

Accessibility & contrast

On white

4.62
#5A8020 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#5A8020 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5A8020
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8020#FFFFFF#000000##FFFFFF
##5A80201.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#86770E
Deuteranopia (green-blind)
#817429
Tritanopia (blue-blind)
#5D7A6D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5a8020;
/* rgb */ color: rgb(90, 128, 32);
/* oklch */ color: oklch(55.2% 0.130 129.0);
Tailwind
colors: {
  custom: {
    50: '#8ca563',
    500: '#5a8020',
    950: '#000000',
  },
}
SCSS
$custom: #5a8020;
$custom-light: #8ca563;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8020",
  "rgb": {
    "r": 90,
    "g": 128,
    "b": 32
  },
  "hsl": {
    "h": 83.75,
    "s": 60,
    "l": 31.373
  },
  "oklch": {
    "l": 0.55195,
    "c": 0.12978,
    "h": 129
  },
  "luminance": 0.17716
}

Semantic roles & 50–950 ramp

primary
#5A8020
secondary
#7349B3
accent
#45E383
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F05
muted
#7D7F7A

Preview Lab

Preview with #5A8020

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

Preview Lab → · Contrast checker → · Palette generator →

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