#5B9121#5B9121

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

Color values

HEX#5B9121
RGBrgb(91, 145, 33)
HSLhsl(89, 63%, 35%)
HSVhsv(89, 77%, 57%)
CMYKcmyk(37.2%, 0%, 77.2%, 43.1%)
CIE-LABlab(54.64, -36.01, 50.07)
CIE-LCHlch(54.64, 61.68, 125.73°)
OKLaboklab(59.69% -0.1017 0.1115)
OKLCHoklch(59.69% 0.151 132.4)
XYZxyz(14.7141, 22.5841, 5.0224)
Luminance0.2258 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B9121 #572191
analogous
#918F21 #5B9121 #239121
triadic
#5B9121 #215B91 #91215B
tetradic
#5B9121 #21918F #572191 #912123
square
#5B9121 #21918F #572191 #912123
split-complementary
#5B9121 #212391 #8F2191
monochromatic
#1C2D0A #3C5F16 #5B9121 #7AC32C #99D854

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B9121#FFFFFF#000000##000000
##5B91211.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)
#978506
Deuteranopia (green-blind)
#90812C
Tritanopia (blue-blind)
#5C8B7C
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5b9121;
/* rgb */ color: rgb(91, 145, 33);
/* oklch */ color: oklch(59.7% 0.151 132.4);
Tailwind
colors: {
  custom: {
    50: '#8eb165',
    500: '#5b9121',
    950: '#000000',
  },
}
SCSS
$custom: #5b9121;
$custom-light: #8eb165;
$custom-dark: #000000;
JSON
{
  "hex": "#5b9121",
  "rgb": {
    "r": 91,
    "g": 145,
    "b": 33
  },
  "hsl": {
    "h": 88.929,
    "s": 62.921,
    "l": 34.902
  },
  "oklch": {
    "l": 0.59689,
    "c": 0.15092,
    "h": 132.4
  },
  "luminance": 0.22585
}

Semantic roles & 50–950 ramp

primary
#5B9121
secondary
#8552BC
accent
#42E691
background
#F9FAF6
surface
#F1F5EB
border
#CBCFC6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5B9121

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

Preview Lab → · Contrast checker → · Palette generator →

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