#5A8820#5A8820

#5A8820 is a mid, vivid yellow-green. Relative luminance 0.199; OKLCH L 57.3% C 0.140 H 130.9°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#5A8820
RGBrgb(90, 136, 32)
HSLhsl(87, 62%, 33%)
HSVhsv(87, 76%, 53%)
CMYKcmyk(33.8%, 0%, 76.5%, 46.7%)
CIE-LABlab(51.71, -32.38, 47.56)
CIE-LCHlch(51.71, 57.54, 124.25°)
OKLaboklab(57.28% -0.0919 0.1061)
OKLCHoklch(57.28% 0.14 130.9)
XYZxyz(13.2812, 19.8858, 4.5048)
Luminance0.1989 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8820 #4E2088
analogous
#888220 #5A8820 #268820
triadic
#5A8820 #205A88 #88205A
tetradic
#5A8820 #208882 #4E2088 #882026
square
#5A8820 #208882 #4E2088 #882026
split-complementary
#5A8820 #202688 #822088
monochromatic
#182509 #395614 #5A8820 #7BBA2C #99D54D

Accessibility & contrast

On white

4.22
#5A8820 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#5A8820 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8820
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8820#FFFFFF#000000##000000
##5A88201.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D0A
Deuteranopia (green-blind)
#887A2A
Tritanopia (blue-blind)
#5C8274
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5a8820;
/* rgb */ color: rgb(90, 136, 32);
/* oklch */ color: oklch(57.3% 0.140 130.9);
Tailwind
colors: {
  custom: {
    50: '#8dab64',
    500: '#5a8820',
    950: '#000000',
  },
}
SCSS
$custom: #5a8820;
$custom-light: #8dab64;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8820",
  "rgb": {
    "r": 90,
    "g": 136,
    "b": 32
  },
  "hsl": {
    "h": 86.538,
    "s": 61.905,
    "l": 32.941
  },
  "oklch": {
    "l": 0.57278,
    "c": 0.14037,
    "h": 130.9
  },
  "luminance": 0.19886
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A8820

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

Preview Lab → · Contrast checker → · Palette generator →

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