#5B9521#5B9521

#5B9521 is a mid, vivid yellow-green. Relative luminance 0.238; OKLCH L 60.7% C 0.156 H 133.0°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#5B9521
RGBrgb(91, 149, 33)
HSLhsl(90, 64%, 36%)
HSVhsv(90, 78%, 58%)
CMYKcmyk(38.9%, 0%, 77.9%, 41.6%)
CIE-LABlab(55.92, -37.77, 51.29)
CIE-LCHlch(55.92, 63.70, 126.37°)
OKLaboklab(60.73% -0.1064 0.1141)
OKLCHoklch(60.73% 0.156 133)
XYZxyz(15.3361, 23.8281, 5.2298)
Luminance0.2383 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B9521 #5B2195
analogous
#959521 #5B9521 #219521
triadic
#5B9521 #215B95 #95215B
tetradic
#5B9521 #219595 #5B2195 #952121
square
#5B9521 #219595 #5B2195 #952121
split-complementary
#5B9521 #212195 #952195
monochromatic
#1E310B #3C6316 #5B9521 #7AC72C #98DA57

Accessibility & contrast

On white

3.64
#5B9521 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#5B9521 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B9521
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B9521#FFFFFF#000000##000000
##5B95211.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8904
Deuteranopia (green-blind)
#93842D
Tritanopia (blue-blind)
#5B8F7F
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5b9521;
/* rgb */ color: rgb(91, 149, 33);
/* oklch */ color: oklch(60.7% 0.156 133.0);
Tailwind
colors: {
  custom: {
    50: '#8fb466',
    500: '#5b9521',
    950: '#000000',
  },
}
SCSS
$custom: #5b9521;
$custom-light: #8fb466;
$custom-dark: #000000;
JSON
{
  "hex": "#5b9521",
  "rgb": {
    "r": 91,
    "g": 149,
    "b": 33
  },
  "hsl": {
    "h": 90,
    "s": 63.736,
    "l": 35.686
  },
  "oklch": {
    "l": 0.6073,
    "c": 0.15602,
    "h": 133
  },
  "luminance": 0.23829
}

Semantic roles & 50–950 ramp

primary
#5B9521
secondary
#8954BE
accent
#41E794
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5B9521

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

Preview Lab → · Contrast checker → · Palette generator →

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