#5B8822#5B8822

#5B8822 is a mid, vivid yellow-green. Relative luminance 0.199; OKLCH L 57.4% C 0.139 H 130.7°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#5B8822
RGBrgb(91, 136, 34)
HSLhsl(86, 60%, 33%)
HSVhsv(86, 75%, 53%)
CMYKcmyk(33.1%, 0%, 75%, 46.7%)
CIE-LABlab(51.78, -31.87, 46.92)
CIE-LCHlch(51.78, 56.72, 124.19°)
OKLaboklab(57.35% -0.0904 0.1051)
OKLCHoklch(57.35% 0.139 130.7)
XYZxyz(13.4072, 19.9475, 4.6569)
Luminance0.1995 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8822 #4F2288
analogous
#888222 #5B8822 #288822
triadic
#5B8822 #225B88 #88225B
tetradic
#5B8822 #228882 #4F2288 #882228
square
#5B8822 #228882 #4F2288 #882228
split-complementary
#5B8822 #222888 #822288
monochromatic
#19260A #3A5716 #5B8822 #7CB92E #9AD351

Accessibility & contrast

On white

4.21
#5B8822 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#5B8822 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8822
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8822#FFFFFF#000000##000000
##5B88221.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E0E
Deuteranopia (green-blind)
#887A2C
Tritanopia (blue-blind)
#5D8274
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5b8822;
/* rgb */ color: rgb(91, 136, 34);
/* oklch */ color: oklch(57.4% 0.139 130.7);
Tailwind
colors: {
  custom: {
    50: '#8dab65',
    500: '#5b8822',
    950: '#000000',
  },
}
SCSS
$custom: #5b8822;
$custom-light: #8dab65;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8822",
  "rgb": {
    "r": 91,
    "g": 136,
    "b": 34
  },
  "hsl": {
    "h": 86.471,
    "s": 60,
    "l": 33.333
  },
  "oklch": {
    "l": 0.57354,
    "c": 0.13859,
    "h": 130.7
  },
  "luminance": 0.19948
}

Semantic roles & 50–950 ramp

primary
#5B8822
secondary
#7D4FB7
accent
#45E38B
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D1006
muted
#7D7F7A

Preview Lab

Preview with #5B8822

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

Preview Lab → · Contrast checker → · Palette generator →

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