#5B8921#5B8921

#5B8921 is a mid, vivid yellow-green. Relative luminance 0.202; OKLCH L 57.6% C 0.141 H 130.8°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#5B8921
RGBrgb(91, 137, 33)
HSLhsl(87, 61%, 33%)
HSVhsv(87, 76%, 54%)
CMYKcmyk(33.6%, 0%, 75.9%, 46.3%)
CIE-LABlab(52.09, -32.39, 47.59)
CIE-LCHlch(52.09, 57.57, 124.24°)
OKLaboklab(57.61% -0.0919 0.1063)
OKLCHoklch(57.61% 0.141 130.8)
XYZxyz(13.5345, 20.2248, 4.6292)
Luminance0.2023 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8921 #4F2189
analogous
#898321 #5B8921 #278921
triadic
#5B8921 #215B89 #89215B
tetradic
#5B8921 #218983 #4F2189 #892127
square
#5B8921 #218983 #4F2189 #892127
split-complementary
#5B8921 #212789 #832189
monochromatic
#192609 #3A5815 #5B8921 #7CBA2D #9AD550

Accessibility & contrast

On white

4.16
#5B8921 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#5B8921 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8921
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8921#FFFFFF#000000##000000
##5B89211.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E0C
Deuteranopia (green-blind)
#897B2B
Tritanopia (blue-blind)
#5D8375
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5b8921;
/* rgb */ color: rgb(91, 137, 33);
/* oklch */ color: oklch(57.6% 0.141 130.8);
Tailwind
colors: {
  custom: {
    50: '#8dab64',
    500: '#5b8921',
    950: '#000000',
  },
}
SCSS
$custom: #5b8921;
$custom-light: #8dab64;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8921",
  "rgb": {
    "r": 91,
    "g": 137,
    "b": 33
  },
  "hsl": {
    "h": 86.538,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.57607,
    "c": 0.14053,
    "h": 130.8
  },
  "luminance": 0.20225
}

Semantic roles & 50–950 ramp

primary
#5B8921
secondary
#7D4EB8
accent
#44E48B
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5B8921

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

Preview Lab → · Contrast checker → · Palette generator →

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