#5B8020#5B8020

#5B8020 is a mid, vivid yellow-green. Relative luminance 0.178; OKLCH L 55.3% C 0.129 H 128.6°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#5B8020
RGBrgb(91, 128, 32)
HSLhsl(83, 60%, 31%)
HSVhsv(83, 75%, 50%)
CMYKcmyk(28.9%, 0%, 75%, 49.8%)
CIE-LABlab(49.21, -28.22, 45.14)
CIE-LCHlch(49.21, 53.23, 122.01°)
OKLaboklab(55.26% -0.0806 0.101)
OKLCHoklch(55.26% 0.129 128.6)
XYZxyz(12.2943, 17.7665, 4.1478)
Luminance0.1777 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8020 #452080
analogous
#807520 #5B8020 #2B8020
triadic
#5B8020 #205B80 #80205B
tetradic
#5B8020 #208075 #452080 #80202B
square
#5B8020 #208075 #452080 #80202B
split-complementary
#5B8020 #202B80 #752080
monochromatic
#151E08 #384F14 #5B8020 #7EB12C #9DD149

Accessibility & contrast

On white

4.61
#5B8020 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#5B8020 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5B8020
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8020#FFFFFF#000000##FFFFFF
##5B80201.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#86770E
Deuteranopia (green-blind)
#817429
Tritanopia (blue-blind)
#5E7A6D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5b8020;
/* rgb */ color: rgb(91, 128, 32);
/* oklch */ color: oklch(55.3% 0.129 128.6);
Tailwind
colors: {
  custom: {
    50: '#8da563',
    500: '#5b8020',
    950: '#000000',
  },
}
SCSS
$custom: #5b8020;
$custom-light: #8da563;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8020",
  "rgb": {
    "r": 91,
    "g": 128,
    "b": 32
  },
  "hsl": {
    "h": 83.125,
    "s": 60,
    "l": 31.373
  },
  "oklch": {
    "l": 0.55262,
    "c": 0.12924,
    "h": 128.6
  },
  "luminance": 0.17767
}

Semantic roles & 50–950 ramp

primary
#5B8020
secondary
#7249B3
accent
#45E382
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F05
muted
#7D7F7A

Preview Lab

Preview with #5B8020

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

Preview Lab → · Contrast checker → · Palette generator →

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