#5B8520#5B8520

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

Color values

HEX#5B8520
RGBrgb(91, 133, 32)
HSLhsl(85, 61%, 32%)
HSVhsv(85, 76%, 52%)
CMYKcmyk(31.6%, 0%, 75.9%, 47.8%)
CIE-LABlab(50.81, -30.60, 46.71)
CIE-LCHlch(50.81, 55.84, 123.23°)
OKLaboklab(56.56% -0.0871 0.1043)
OKLCHoklch(56.56% 0.136 129.8)
XYZxyz(12.9626, 19.1031, 4.3705)
Luminance0.1910 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8520 #4A2085
analogous
#857C20 #5B8520 #298520
triadic
#5B8520 #205B85 #85205B
tetradic
#5B8520 #20857C #4A2085 #852029
square
#5B8520 #20857C #4A2085 #852029
split-complementary
#5B8520 #202985 #7C2085
monochromatic
#172208 #395414 #5B8520 #7DB62C #9BD44C

Accessibility & contrast

On white

4.36
#5B8520 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#5B8520 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8520
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8520#FFFFFF#000000##000000
##5B85201.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B0B
Deuteranopia (green-blind)
#86782A
Tritanopia (blue-blind)
#5E7F72
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5b8520;
/* rgb */ color: rgb(91, 133, 32);
/* oklch */ color: oklch(56.6% 0.136 129.8);
Tailwind
colors: {
  custom: {
    50: '#8da863',
    500: '#5b8520',
    950: '#000000',
  },
}
SCSS
$custom: #5b8520;
$custom-light: #8da863;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8520",
  "rgb": {
    "r": 91,
    "g": 133,
    "b": 32
  },
  "hsl": {
    "h": 84.95,
    "s": 61.212,
    "l": 32.353
  },
  "oklch": {
    "l": 0.5656,
    "c": 0.13588,
    "h": 129.8
  },
  "luminance": 0.19103
}

Semantic roles & 50–950 ramp

primary
#5B8520
secondary
#774AB7
accent
#43E486
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D0F06
muted
#7D7F7A

Preview Lab

Preview with #5B8520

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

Preview Lab → · Contrast checker → · Palette generator →

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