#5B9921#5B9921

#5B9921 is a mid, vivid yellow-green. Relative luminance 0.251; OKLCH L 61.8% C 0.161 H 133.6°. Best body text is #000000 at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#5B9921
RGBrgb(91, 153, 33)
HSLhsl(91, 65%, 36%)
HSVhsv(91, 78%, 60%)
CMYKcmyk(40.5%, 0%, 78.4%, 40%)
CIE-LABlab(57.19, -39.50, 52.50)
CIE-LCHlch(57.19, 65.71, 126.96°)
OKLaboklab(61.77% -0.1111 0.1166)
OKLCHoklch(61.77% 0.161 133.6)
XYZxyz(15.9799, 25.1156, 5.4444)
Luminance0.2512 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B9921 #5F2199
analogous
#979921 #5B9921 #219923
triadic
#5B9921 #215B99 #99215B
tetradic
#5B9921 #219799 #5F2199 #992321
square
#5B9921 #219799 #5F2199 #992321
split-complementary
#5B9921 #232199 #992197
monochromatic
#1F340B #3D6716 #5B9921 #79CB2C #98DB59

Accessibility & contrast

On white

3.49
#5B9921 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.02
#5B9921 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B9921
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B9921#FFFFFF#000000##000000
##5B99211.003.496.026.02
#FFFFFF3.491.0021.0021.00
#0000006.0221.001.001.00
##0000006.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9F8C01
Deuteranopia (green-blind)
#97882E
Tritanopia (blue-blind)
#5B9383
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #5b9921;
/* rgb */ color: rgb(91, 153, 33);
/* oklch */ color: oklch(61.8% 0.161 133.6);
Tailwind
colors: {
  custom: {
    50: '#8fb766',
    500: '#5b9921',
    950: '#000000',
  },
}
SCSS
$custom: #5b9921;
$custom-light: #8fb766;
$custom-dark: #000000;
JSON
{
  "hex": "#5b9921",
  "rgb": {
    "r": 91,
    "g": 153,
    "b": 33
  },
  "hsl": {
    "h": 91,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.61771,
    "c": 0.16108,
    "h": 133.6
  },
  "luminance": 0.25116
}

Semantic roles & 50–950 ramp

primary
#5B9921
secondary
#8D56BF
accent
#40E897
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5B9921

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

Preview Lab → · Contrast checker → · Palette generator →

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