#5A8720#5A8720

#5A8720 is a mid, vivid yellow-green. Relative luminance 0.196; OKLCH L 57.0% C 0.139 H 130.7°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#5A8720
RGBrgb(90, 135, 32)
HSLhsl(86, 62%, 33%)
HSVhsv(86, 76%, 53%)
CMYKcmyk(33.3%, 0%, 76.3%, 47.1%)
CIE-LABlab(51.39, -31.92, 47.25)
CIE-LCHlch(51.39, 57.03, 124.04°)
OKLaboklab(57.02% -0.0906 0.1055)
OKLCHoklch(57.02% 0.139 130.7)
XYZxyz(13.1410, 19.6054, 4.4581)
Luminance0.1961 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8720 #4D2087
analogous
#878120 #5A8720 #268720
triadic
#5A8720 #205A87 #87205A
tetradic
#5A8720 #208781 #4D2087 #872026
square
#5A8720 #208781 #4D2087 #872026
split-complementary
#5A8720 #202687 #812087
monochromatic
#182409 #395614 #5A8720 #7BB82C #99D54D

Accessibility & contrast

On white

4.27
#5A8720 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#5A8720 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8720
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8720#FFFFFF#000000##000000
##5A87201.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D0A
Deuteranopia (green-blind)
#87792A
Tritanopia (blue-blind)
#5C8173
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5a8720;
/* rgb */ color: rgb(90, 135, 32);
/* oklch */ color: oklch(57.0% 0.139 130.7);
Tailwind
colors: {
  custom: {
    50: '#8daa63',
    500: '#5a8720',
    950: '#000000',
  },
}
SCSS
$custom: #5a8720;
$custom-light: #8daa63;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8720",
  "rgb": {
    "r": 90,
    "g": 135,
    "b": 32
  },
  "hsl": {
    "h": 86.214,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.57018,
    "c": 0.13905,
    "h": 130.7
  },
  "luminance": 0.19606
}

Semantic roles & 50–950 ramp

primary
#5A8720
secondary
#7B4BB8
accent
#43E58A
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #5A8720

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

Preview Lab → · Contrast checker → · Palette generator →

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