#5B9122#5B9122

#5B9122 is a mid, vivid yellow-green. Relative luminance 0.226; OKLCH L 59.7% C 0.150 H 132.4°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#5B9122
RGBrgb(91, 145, 34)
HSLhsl(89, 62%, 35%)
HSVhsv(89, 77%, 57%)
CMYKcmyk(37.2%, 0%, 76.6%, 43.1%)
CIE-LABlab(54.65, -35.95, 49.72)
CIE-LCHlch(54.65, 61.36, 125.87°)
OKLaboklab(59.7% -0.1014 0.111)
OKLCHoklch(59.7% 0.15 132.4)
XYZxyz(14.7283, 22.5898, 5.0973)
Luminance0.2259 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B9122 #582291
analogous
#918F22 #5B9122 #249122
triadic
#5B9122 #225B91 #91225B
tetradic
#5B9122 #22918F #582291 #912224
square
#5B9122 #22918F #582291 #912224
split-complementary
#5B9122 #222491 #8F2291
monochromatic
#1D2E0B #3C5F16 #5B9122 #7AC32E #98D756

Accessibility & contrast

On white

3.81
#5B9122 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#5B9122 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B9122
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B9122#FFFFFF#000000##000000
##5B91221.003.815.525.52
#FFFFFF3.811.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#978509
Deuteranopia (green-blind)
#90812D
Tritanopia (blue-blind)
#5C8B7C
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5b9122;
/* rgb */ color: rgb(91, 145, 34);
/* oklch */ color: oklch(59.7% 0.150 132.4);
Tailwind
colors: {
  custom: {
    50: '#8eb166',
    500: '#5b9122',
    950: '#000000',
  },
}
SCSS
$custom: #5b9122;
$custom-light: #8eb166;
$custom-dark: #000000;
JSON
{
  "hex": "#5b9122",
  "rgb": {
    "r": 91,
    "g": 145,
    "b": 34
  },
  "hsl": {
    "h": 89.189,
    "s": 62.011,
    "l": 35.098
  },
  "oklch": {
    "l": 0.59695,
    "c": 0.15034,
    "h": 132.4
  },
  "luminance": 0.2259
}

Semantic roles & 50–950 ramp

primary
#5B9122
secondary
#8653BB
accent
#43E592
background
#F9FAF6
surface
#F1F5EB
border
#CBCFC6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5B9122

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

Preview Lab → · Contrast checker → · Palette generator →

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