#5B8422#5B8422

#5B8422 is a mid, vivid yellow-green. Relative luminance 0.188; OKLCH L 56.3% C 0.133 H 129.8°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#5B8422
RGBrgb(91, 132, 34)
HSLhsl(85, 59%, 33%)
HSVhsv(85, 74%, 52%)
CMYKcmyk(31.1%, 0%, 74.2%, 48.2%)
CIE-LABlab(50.50, -30.00, 45.65)
CIE-LCHlch(50.50, 54.62, 123.31°)
OKLaboklab(56.32% -0.0853 0.1024)
OKLCHoklch(56.32% 0.133 129.8)
XYZxyz(12.8543, 18.8418, 4.4726)
Luminance0.1884 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8422 #4B2284
analogous
#847C22 #5B8422 #2A8422
triadic
#5B8422 #225B84 #84225B
tetradic
#5B8422 #22847C #4B2284 #84222A
square
#5B8422 #22847C #4B2284 #84222A
split-complementary
#5B8422 #222A84 #7C2284
monochromatic
#182309 #395315 #5B8422 #7DB52F #9BD24F

Accessibility & contrast

On white

4.40
#5B8422 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#5B8422 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8422
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8422#FFFFFF#000000##000000
##5B84221.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A10
Deuteranopia (green-blind)
#85772B
Tritanopia (blue-blind)
#5E7E71
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5b8422;
/* rgb */ color: rgb(91, 132, 34);
/* oklch */ color: oklch(56.3% 0.133 129.8);
Tailwind
colors: {
  custom: {
    50: '#8da864',
    500: '#5b8422',
    950: '#000000',
  },
}
SCSS
$custom: #5b8422;
$custom-light: #8da864;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8422",
  "rgb": {
    "r": 91,
    "g": 132,
    "b": 34
  },
  "hsl": {
    "h": 85.102,
    "s": 59.036,
    "l": 32.549
  },
  "oklch": {
    "l": 0.56315,
    "c": 0.13328,
    "h": 129.8
  },
  "luminance": 0.18842
}

Semantic roles & 50–950 ramp

primary
#5B8422
secondary
#784DB5
accent
#46E287
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F06
muted
#7D7F7A

Preview Lab

Preview with #5B8422

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

Preview Lab → · Contrast checker → · Palette generator →

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