#5B7920#5B7920

#5B7920 is a mid, moderate yellow-green. Relative luminance 0.160; OKLCH L 53.4% C 0.120 H 126.5°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#5B7920
RGBrgb(91, 121, 32)
HSLhsl(80, 58%, 30%)
HSVhsv(80, 74%, 47%)
CMYKcmyk(24.8%, 0%, 73.6%, 52.5%)
CIE-LABlab(46.98, -24.79, 42.92)
CIE-LCHlch(46.98, 49.56, 120.01°)
OKLaboklab(53.45% -0.0712 0.0964)
OKLCHoklch(53.45% 0.12 126.5)
XYZxyz(11.4125, 16.0030, 3.8538)
Luminance0.1600 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7920 #3E2079
analogous
#796B20 #5B7920 #2E7920
triadic
#5B7920 #205B79 #79205B
tetradic
#5B7920 #20796B #3E2079 #79202E
square
#5B7920 #20796B #3E2079 #79202E
split-complementary
#5B7920 #202E79 #6B2079
monochromatic
#121806 #374913 #5B7920 #7FA92D #A0CE45

Accessibility & contrast

On white

5.00
#5B7920 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#5B7920 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7920
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7920#FFFFFF#000000##FFFFFF
##5B79201.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807111
Deuteranopia (green-blind)
#7B6F28
Tritanopia (blue-blind)
#5F7368
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5b7920;
/* rgb */ color: rgb(91, 121, 32);
/* oklch */ color: oklch(53.4% 0.120 126.5);
Tailwind
colors: {
  custom: {
    50: '#8ca062',
    500: '#5b7920',
    950: '#000000',
  },
}
SCSS
$custom: #5b7920;
$custom-light: #8ca062;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7920",
  "rgb": {
    "r": 91,
    "g": 121,
    "b": 32
  },
  "hsl": {
    "h": 80.225,
    "s": 58.17,
    "l": 30
  },
  "oklch": {
    "l": 0.5345,
    "c": 0.11984,
    "h": 126.5
  },
  "luminance": 0.16003
}

Semantic roles & 50–950 ramp

primary
#5B7920
secondary
#6A49AC
accent
#46E17B
background
#F8F9F6
surface
#F0F2EB
border
#CBCCC6
text
#0C0E05
muted
#7D7E7A

Preview Lab

Preview with #5B7920

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

Preview Lab → · Contrast checker → · Palette generator →

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