#5B8022#5B8022

#5B8022 is a mid, vivid yellow-green. Relative luminance 0.178; OKLCH L 55.3% C 0.128 H 128.8°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#5B8022
RGBrgb(91, 128, 34)
HSLhsl(84, 58%, 32%)
HSVhsv(84, 73%, 50%)
CMYKcmyk(28.9%, 0%, 73.4%, 49.8%)
CIE-LABlab(49.23, -28.09, 44.37)
CIE-LCHlch(49.23, 52.52, 122.33°)
OKLaboklab(55.28% -0.0801 0.0998)
OKLCHoklch(55.28% 0.128 128.8)
XYZxyz(12.3223, 17.7777, 4.2953)
Luminance0.1778 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8022 #472280
analogous
#807622 #5B8022 #2C8022
triadic
#5B8022 #225B80 #80225B
tetradic
#5B8022 #228076 #472280 #80222C
square
#5B8022 #228076 #472280 #80222C
split-complementary
#5B8022 #222C80 #762280
monochromatic
#161F08 #395015 #5B8022 #7DB02F #9CD04D

Accessibility & contrast

On white

4.61
#5B8022 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#5B8022 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5B8022
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8022#FFFFFF#000000##FFFFFF
##5B80221.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867712
Deuteranopia (green-blind)
#81742A
Tritanopia (blue-blind)
#5E7A6E
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5b8022;
/* rgb */ color: rgb(91, 128, 34);
/* oklch */ color: oklch(55.3% 0.128 128.8);
Tailwind
colors: {
  custom: {
    50: '#8da564',
    500: '#5b8022',
    950: '#000000',
  },
}
SCSS
$custom: #5b8022;
$custom-light: #8da564;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8022",
  "rgb": {
    "r": 91,
    "g": 128,
    "b": 34
  },
  "hsl": {
    "h": 83.617,
    "s": 58.025,
    "l": 31.765
  },
  "oklch": {
    "l": 0.55278,
    "c": 0.12791,
    "h": 128.8
  },
  "luminance": 0.17778
}

Semantic roles & 50–950 ramp

primary
#5B8022
secondary
#744BB2
accent
#47E183
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F06
muted
#7D7F7A

Preview Lab

Preview with #5B8022

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

Preview Lab → · Contrast checker → · Palette generator →

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