#5B9222#5B9222

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

Color values

HEX#5B9222
RGBrgb(91, 146, 34)
HSLhsl(89, 62%, 35%)
HSVhsv(89, 77%, 57%)
CMYKcmyk(37.7%, 0%, 76.7%, 42.7%)
CIE-LABlab(54.97, -36.40, 50.03)
CIE-LCHlch(54.97, 61.87, 126.03°)
OKLaboklab(59.96% -0.1026 0.1116)
OKLCHoklch(59.96% 0.152 132.6)
XYZxyz(14.8818, 22.8968, 5.1485)
Luminance0.2290 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B9222 #592292
analogous
#929122 #5B9222 #239222
triadic
#5B9222 #225B92 #92225B
tetradic
#5B9222 #229291 #592292 #922223
square
#5B9222 #229291 #592292 #922223
split-complementary
#5B9222 #222392 #912292
monochromatic
#1D2F0B #3C6016 #5B9222 #7AC42E #98D857

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B9222#FFFFFF#000000##000000
##5B92221.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)
#988609
Deuteranopia (green-blind)
#91822D
Tritanopia (blue-blind)
#5C8C7D
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5b9222;
/* rgb */ color: rgb(91, 146, 34);
/* oklch */ color: oklch(60.0% 0.152 132.6);
Tailwind
colors: {
  custom: {
    50: '#8eb266',
    500: '#5b9222',
    950: '#000000',
  },
}
SCSS
$custom: #5b9222;
$custom-light: #8eb266;
$custom-dark: #000000;
JSON
{
  "hex": "#5b9222",
  "rgb": {
    "r": 91,
    "g": 146,
    "b": 34
  },
  "hsl": {
    "h": 89.464,
    "s": 62.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.59956,
    "c": 0.15163,
    "h": 132.6
  },
  "luminance": 0.22897
}

Semantic roles & 50–950 ramp

primary
#5B9222
secondary
#8754BC
accent
#43E592
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5B9222

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

Preview Lab → · Contrast checker → · Palette generator →

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