#5B8B20#5B8B20

#5B8B20 is a mid, vivid yellow-green. Relative luminance 0.208; OKLCH L 58.1% C 0.144 H 131.2°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#5B8B20
RGBrgb(91, 139, 32)
HSLhsl(87, 63%, 34%)
HSVhsv(87, 77%, 55%)
CMYKcmyk(34.5%, 0%, 77%, 45.5%)
CIE-LABlab(52.72, -33.37, 48.57)
CIE-LCHlch(52.72, 58.93, 124.50°)
OKLaboklab(58.12% -0.0946 0.1082)
OKLCHoklch(58.12% 0.144 131.2)
XYZxyz(13.8076, 20.7932, 4.6522)
Luminance0.2079 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8B20 #50208B
analogous
#8B8520 #5B8B20 #258B20
triadic
#5B8B20 #205B8B #8B205B
tetradic
#5B8B20 #208B85 #50208B #8B2025
square
#5B8B20 #208B85 #50208B #8B2025
split-complementary
#5B8B20 #20258B #85208B
monochromatic
#1A2809 #3A5915 #5B8B20 #7CBD2B #9AD64F

Accessibility & contrast

On white

4.07
#5B8B20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#5B8B20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8B20
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8B20#FFFFFF#000000##000000
##5B8B201.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#918008
Deuteranopia (green-blind)
#8B7D2B
Tritanopia (blue-blind)
#5D8577
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5b8b20;
/* rgb */ color: rgb(91, 139, 32);
/* oklch */ color: oklch(58.1% 0.144 131.2);
Tailwind
colors: {
  custom: {
    50: '#8ead64',
    500: '#5b8b20',
    950: '#000000',
  },
}
SCSS
$custom: #5b8b20;
$custom-light: #8ead64;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8b20",
  "rgb": {
    "r": 91,
    "g": 139,
    "b": 32
  },
  "hsl": {
    "h": 86.916,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.5812,
    "c": 0.14374,
    "h": 131.2
  },
  "luminance": 0.20794
}

Semantic roles & 50–950 ramp

primary
#5B8B20
secondary
#7E4DBA
accent
#42E68B
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5B8B20

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

Preview Lab → · Contrast checker → · Palette generator →

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