#5B8522#5B8522

#5B8522 is a mid, vivid yellow-green. Relative luminance 0.191; OKLCH L 56.6% C 0.135 H 130.0°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#5B8522
RGBrgb(91, 133, 34)
HSLhsl(85, 59%, 33%)
HSVhsv(85, 74%, 52%)
CMYKcmyk(31.6%, 0%, 74.4%, 47.8%)
CIE-LABlab(50.82, -30.47, 45.97)
CIE-LCHlch(50.82, 55.15, 123.54°)
OKLaboklab(56.58% -0.0866 0.1031)
OKLCHoklch(56.58% 0.135 130)
XYZxyz(12.9906, 19.1143, 4.5181)
Luminance0.1911 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8522 #4C2285
analogous
#857E22 #5B8522 #298522
triadic
#5B8522 #225B85 #85225B
tetradic
#5B8522 #22857E #4C2285 #852229
square
#5B8522 #22857E #4C2285 #852229
split-complementary
#5B8522 #222985 #7E2285
monochromatic
#182409 #3A5416 #5B8522 #7CB62E #9BD24F

Accessibility & contrast

On white

4.35
#5B8522 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#5B8522 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8522
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8522#FFFFFF#000000##000000
##5B85221.004.354.824.82
#FFFFFF4.351.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B10
Deuteranopia (green-blind)
#86782B
Tritanopia (blue-blind)
#5D7F72
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5b8522;
/* rgb */ color: rgb(91, 133, 34);
/* oklch */ color: oklch(56.6% 0.135 130.0);
Tailwind
colors: {
  custom: {
    50: '#8da864',
    500: '#5b8522',
    950: '#000000',
  },
}
SCSS
$custom: #5b8522;
$custom-light: #8da864;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8522",
  "rgb": {
    "r": 91,
    "g": 133,
    "b": 34
  },
  "hsl": {
    "h": 85.455,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.56575,
    "c": 0.13461,
    "h": 130
  },
  "luminance": 0.19115
}

Semantic roles & 50–950 ramp

primary
#5B8522
secondary
#7A4DB6
accent
#45E288
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D0F06
muted
#7D7F7A

Preview Lab

Preview with #5B8522

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

Preview Lab → · Contrast checker → · Palette generator →

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