#5B9221#5B9221

#5B9221 is a mid, vivid yellow-green. Relative luminance 0.229; OKLCH L 59.9% C 0.152 H 132.5°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#5B9221
RGBrgb(91, 146, 33)
HSLhsl(89, 63%, 35%)
HSVhsv(89, 77%, 57%)
CMYKcmyk(37.7%, 0%, 77.4%, 42.7%)
CIE-LABlab(54.96, -36.46, 50.38)
CIE-LCHlch(54.96, 62.18, 125.89°)
OKLaboklab(59.95% -0.1029 0.1122)
OKLCHoklch(59.95% 0.152 132.5)
XYZxyz(14.8676, 22.8911, 5.0736)
Luminance0.2289 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B9221 #582192
analogous
#929121 #5B9221 #229221
triadic
#5B9221 #215B92 #92215B
tetradic
#5B9221 #219291 #582192 #922122
square
#5B9221 #219291 #582192 #922122
split-complementary
#5B9221 #212292 #912192
monochromatic
#1D2E0A #3C6016 #5B9221 #7AC42C #98D955

Accessibility & contrast

On white

3.76
#5B9221 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#5B9221 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B9221
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B9221#FFFFFF#000000##000000
##5B92211.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#988606
Deuteranopia (green-blind)
#91822D
Tritanopia (blue-blind)
#5C8C7D
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5b9221;
/* rgb */ color: rgb(91, 146, 33);
/* oklch */ color: oklch(59.9% 0.152 132.5);
Tailwind
colors: {
  custom: {
    50: '#8eb265',
    500: '#5b9221',
    950: '#000000',
  },
}
SCSS
$custom: #5b9221;
$custom-light: #8eb265;
$custom-dark: #000000;
JSON
{
  "hex": "#5b9221",
  "rgb": {
    "r": 91,
    "g": 146,
    "b": 33
  },
  "hsl": {
    "h": 89.204,
    "s": 63.128,
    "l": 35.098
  },
  "oklch": {
    "l": 0.59949,
    "c": 0.1522,
    "h": 132.5
  },
  "luminance": 0.22892
}

Semantic roles & 50–950 ramp

primary
#5B9221
secondary
#8653BC
accent
#42E692
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5B9221

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

Preview Lab → · Contrast checker → · Palette generator →

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