#5B8820#5B8820

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

Color values

HEX#5B8820
RGBrgb(91, 136, 32)
HSLhsl(86, 62%, 33%)
HSVhsv(86, 76%, 53%)
CMYKcmyk(33.1%, 0%, 76.5%, 46.7%)
CIE-LABlab(51.77, -31.99, 47.64)
CIE-LCHlch(51.77, 57.39, 123.89°)
OKLaboklab(57.34% -0.0909 0.1063)
OKLCHoklch(57.34% 0.14 130.5)
XYZxyz(13.3792, 19.9363, 4.5094)
Luminance0.1994 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8820 #4D2088
analogous
#888120 #5B8820 #278820
triadic
#5B8820 #205B88 #88205B
tetradic
#5B8820 #208881 #4D2088 #882027
square
#5B8820 #208881 #4D2088 #882027
split-complementary
#5B8820 #202788 #812088
monochromatic
#192509 #3A5614 #5B8820 #7CBA2C #9AD54D

Accessibility & contrast

On white

4.21
#5B8820 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#5B8820 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8820
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8820#FFFFFF#000000##000000
##5B88201.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b8820;
/* rgb */ color: rgb(91, 136, 32);
/* oklch */ color: oklch(57.3% 0.140 130.5);
Tailwind
colors: {
  custom: {
    50: '#8dab64',
    500: '#5b8820',
    950: '#000000',
  },
}
SCSS
$custom: #5b8820;
$custom-light: #8dab64;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8820",
  "rgb": {
    "r": 91,
    "g": 136,
    "b": 32
  },
  "hsl": {
    "h": 85.962,
    "s": 61.905,
    "l": 32.941
  },
  "oklch": {
    "l": 0.5734,
    "c": 0.13982,
    "h": 130.5
  },
  "luminance": 0.19937
}

Semantic roles & 50–950 ramp

primary
#5B8820
secondary
#7B4CB8
accent
#43E589
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D1006
muted
#7D7F7A

Preview Lab

Preview with #5B8820

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

Preview Lab → · Contrast checker → · Palette generator →

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