#5B8722#5B8722

#5B8722 is a mid, vivid yellow-green. Relative luminance 0.197; OKLCH L 57.1% C 0.137 H 130.5°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#5B8722
RGBrgb(91, 135, 34)
HSLhsl(86, 60%, 33%)
HSVhsv(86, 75%, 53%)
CMYKcmyk(32.6%, 0%, 74.8%, 47.1%)
CIE-LABlab(51.46, -31.40, 46.60)
CIE-LCHlch(51.46, 56.19, 123.98°)
OKLaboklab(57.09% -0.0891 0.1044)
OKLCHoklch(57.09% 0.137 130.5)
XYZxyz(13.2670, 19.6672, 4.6102)
Luminance0.1967 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8722 #4E2287
analogous
#878022 #5B8722 #288722
triadic
#5B8722 #225B87 #87225B
tetradic
#5B8722 #228780 #4E2287 #872228
square
#5B8722 #228780 #4E2287 #872228
split-complementary
#5B8722 #222887 #802287
monochromatic
#192509 #3A5616 #5B8722 #7CB82E #9AD350

Accessibility & contrast

On white

4.26
#5B8722 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#5B8722 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8722
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8722#FFFFFF#000000##000000
##5B87221.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D0F
Deuteranopia (green-blind)
#877A2B
Tritanopia (blue-blind)
#5D8173
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5b8722;
/* rgb */ color: rgb(91, 135, 34);
/* oklch */ color: oklch(57.1% 0.137 130.5);
Tailwind
colors: {
  custom: {
    50: '#8daa64',
    500: '#5b8722',
    950: '#000000',
  },
}
SCSS
$custom: #5b8722;
$custom-light: #8daa64;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8722",
  "rgb": {
    "r": 91,
    "g": 135,
    "b": 34
  },
  "hsl": {
    "h": 86.139,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.57094,
    "c": 0.13727,
    "h": 130.5
  },
  "luminance": 0.19668
}

Semantic roles & 50–950 ramp

primary
#5B8722
secondary
#7C4EB7
accent
#45E38A
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D1006
muted
#7D7F7A

Preview Lab

Preview with #5B8722

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

Preview Lab → · Contrast checker → · Palette generator →

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