#5B8322#5B8322

#5B8322 is a mid, vivid yellow-green. Relative luminance 0.186; OKLCH L 56.1% C 0.132 H 129.5°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#5B8322
RGBrgb(91, 131, 34)
HSLhsl(85, 59%, 32%)
HSVhsv(85, 74%, 51%)
CMYKcmyk(30.5%, 0%, 74%, 48.6%)
CIE-LABlab(50.18, -29.52, 45.33)
CIE-LCHlch(50.18, 54.10, 123.07°)
OKLaboklab(56.06% -0.084 0.1018)
OKLCHoklch(56.06% 0.132 129.5)
XYZxyz(12.7194, 18.5719, 4.4277)
Luminance0.1857 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8322 #4A2283
analogous
#837A22 #5B8322 #2B8322
triadic
#5B8322 #225B83 #83225B
tetradic
#5B8322 #22837A #4A2283 #83222B
square
#5B8322 #22837A #4A2283 #83222B
split-complementary
#5B8322 #222B83 #7A2283
monochromatic
#172209 #395215 #5B8322 #7DB42F #9BD14E

Accessibility & contrast

On white

4.45
#5B8322 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#5B8322 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8322
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8322#FFFFFF#000000##000000
##5B83221.004.454.714.71
#FFFFFF4.451.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#897911
Deuteranopia (green-blind)
#84762B
Tritanopia (blue-blind)
#5E7D70
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5b8322;
/* rgb */ color: rgb(91, 131, 34);
/* oklch */ color: oklch(56.1% 0.132 129.5);
Tailwind
colors: {
  custom: {
    50: '#8da764',
    500: '#5b8322',
    950: '#000000',
  },
}
SCSS
$custom: #5b8322;
$custom-light: #8da764;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8322",
  "rgb": {
    "r": 91,
    "g": 131,
    "b": 34
  },
  "hsl": {
    "h": 84.742,
    "s": 58.788,
    "l": 32.353
  },
  "oklch": {
    "l": 0.56056,
    "c": 0.13194,
    "h": 129.5
  },
  "luminance": 0.18572
}

Semantic roles & 50–950 ramp

primary
#5B8322
secondary
#774CB4
accent
#46E286
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F06
muted
#7D7F7A

Preview Lab

Preview with #5B8322

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

Preview Lab → · Contrast checker → · Palette generator →

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