#5B7E20#5B7E20

#5B7E20 is a mid, vivid yellow-green. Relative luminance 0.172; OKLCH L 54.7% C 0.127 H 128.0°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#5B7E20
RGBrgb(91, 126, 32)
HSLhsl(82, 59%, 31%)
HSVhsv(82, 75%, 49%)
CMYKcmyk(27.8%, 0%, 74.6%, 50.6%)
CIE-LABlab(48.57, -27.25, 44.51)
CIE-LCHlch(48.57, 52.19, 121.48°)
OKLaboklab(54.74% -0.078 0.0997)
OKLCHoklch(54.74% 0.127 128)
XYZxyz(12.0360, 17.2499, 4.0617)
Luminance0.1725 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7E20 #43207E
analogous
#7E7220 #5B7E20 #2C7E20
triadic
#5B7E20 #205B7E #7E205B
tetradic
#5B7E20 #207E72 #43207E #7E202C
square
#5B7E20 #207E72 #43207E #7E202C
split-complementary
#5B7E20 #202C7E #72207E
monochromatic
#151C07 #384D14 #5B7E20 #7EAF2C #9ED048

Accessibility & contrast

On white

4.72
#5B7E20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#5B7E20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7E20
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7E20#FFFFFF#000000##FFFFFF
##5B7E201.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#84750F
Deuteranopia (green-blind)
#807329
Tritanopia (blue-blind)
#5E786C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5b7e20;
/* rgb */ color: rgb(91, 126, 32);
/* oklch */ color: oklch(54.7% 0.127 128.0);
Tailwind
colors: {
  custom: {
    50: '#8da362',
    500: '#5b7e20',
    950: '#000000',
  },
}
SCSS
$custom: #5b7e20;
$custom-light: #8da362;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7e20",
  "rgb": {
    "r": 91,
    "g": 126,
    "b": 32
  },
  "hsl": {
    "h": 82.34,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.54744,
    "c": 0.12657,
    "h": 128
  },
  "luminance": 0.1725
}

Semantic roles & 50–950 ramp

primary
#5B7E20
secondary
#7049B1
accent
#45E380
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F05
muted
#7D7F7A

Preview Lab

Preview with #5B7E20

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

Preview Lab → · Contrast checker → · Palette generator →

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