#5B8720#5B8720

#5B8720 is a mid, vivid yellow-green. Relative luminance 0.197; OKLCH L 57.1% C 0.139 H 130.3°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#5B8720
RGBrgb(91, 135, 32)
HSLhsl(86, 62%, 33%)
HSVhsv(86, 76%, 53%)
CMYKcmyk(32.6%, 0%, 76.3%, 47.1%)
CIE-LABlab(51.45, -31.53, 47.33)
CIE-LCHlch(51.45, 56.87, 123.67°)
OKLaboklab(57.08% -0.0896 0.1056)
OKLCHoklch(57.08% 0.139 130.3)
XYZxyz(13.2390, 19.6559, 4.4627)
Luminance0.1966 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8720 #4C2087
analogous
#877F20 #5B8720 #278720
triadic
#5B8720 #205B87 #87205B
tetradic
#5B8720 #20877F #4C2087 #872027
square
#5B8720 #20877F #4C2087 #872027
split-complementary
#5B8720 #202787 #7F2087
monochromatic
#182409 #3A5614 #5B8720 #7CB82C #9BD54D

Accessibility & contrast

On white

4.26
#5B8720 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#5B8720 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8720
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8720#FFFFFF#000000##000000
##5B87201.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D0A
Deuteranopia (green-blind)
#877A2A
Tritanopia (blue-blind)
#5D8173
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5b8720;
/* rgb */ color: rgb(91, 135, 32);
/* oklch */ color: oklch(57.1% 0.139 130.3);
Tailwind
colors: {
  custom: {
    50: '#8daa63',
    500: '#5b8720',
    950: '#000000',
  },
}
SCSS
$custom: #5b8720;
$custom-light: #8daa63;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8720",
  "rgb": {
    "r": 91,
    "g": 135,
    "b": 32
  },
  "hsl": {
    "h": 85.631,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.5708,
    "c": 0.13851,
    "h": 130.3
  },
  "luminance": 0.19656
}

Semantic roles & 50–950 ramp

primary
#5B8720
secondary
#7A4BB8
accent
#43E588
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D1006
muted
#7D7F7A

Preview Lab

Preview with #5B8720

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

Preview Lab → · Contrast checker → · Palette generator →

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