#5B8E20#5B8E20

#5B8E20 is a mid, vivid yellow-green. Relative luminance 0.217; OKLCH L 58.9% C 0.148 H 131.7°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#5B8E20
RGBrgb(91, 142, 32)
HSLhsl(88, 63%, 34%)
HSVhsv(88, 77%, 56%)
CMYKcmyk(35.9%, 0%, 77.5%, 44.3%)
CIE-LABlab(53.68, -34.73, 49.49)
CIE-LCHlch(53.68, 60.46, 125.06°)
OKLaboklab(58.9% -0.0983 0.1102)
OKLCHoklch(58.9% 0.148 131.7)
XYZxyz(14.2479, 21.6739, 4.7990)
Luminance0.2167 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8E20 #53208E
analogous
#8E8A20 #5B8E20 #248E20
triadic
#5B8E20 #205B8E #8E205B
tetradic
#5B8E20 #208E8A #53208E #8E2024
square
#5B8E20 #208E8A #53208E #8E2024
split-complementary
#5B8E20 #20248E #8A208E
monochromatic
#1B2A09 #3B5C15 #5B8E20 #7BC02B #99D851

Accessibility & contrast

On white

3.94
#5B8E20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#5B8E20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8E20
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8E20#FFFFFF#000000##000000
##5B8E201.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#948306
Deuteranopia (green-blind)
#8D7F2B
Tritanopia (blue-blind)
#5C8879
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5b8e20;
/* rgb */ color: rgb(91, 142, 32);
/* oklch */ color: oklch(58.9% 0.148 131.7);
Tailwind
colors: {
  custom: {
    50: '#8eaf64',
    500: '#5b8e20',
    950: '#000000',
  },
}
SCSS
$custom: #5b8e20;
$custom-light: #8eaf64;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8e20",
  "rgb": {
    "r": 91,
    "g": 142,
    "b": 32
  },
  "hsl": {
    "h": 87.818,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.58901,
    "c": 0.14763,
    "h": 131.7
  },
  "luminance": 0.21674
}

Semantic roles & 50–950 ramp

primary
#5B8E20
secondary
#814FBB
accent
#42E68E
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5B8E20

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

Preview Lab → · Contrast checker → · Palette generator →

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