#5B9722#5B9722

#5B9722 is a mid, vivid yellow-green. Relative luminance 0.245; OKLCH L 61.3% C 0.158 H 133.4°. Best body text is #000000 at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#5B9722
RGBrgb(91, 151, 34)
HSLhsl(91, 63%, 36%)
HSVhsv(91, 77%, 59%)
CMYKcmyk(39.7%, 0%, 77.5%, 40.8%)
CIE-LABlab(56.56, -38.58, 51.57)
CIE-LCHlch(56.56, 64.41, 126.80°)
OKLaboklab(61.26% -0.1086 0.1148)
OKLCHoklch(61.26% 0.158 133.4)
XYZxyz(15.6695, 24.4721, 5.4110)
Luminance0.2447 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B9722 #5E2297
analogous
#969722 #5B9722 #229724
triadic
#5B9722 #225B97 #97225B
tetradic
#5B9722 #229697 #5E2297 #972422
square
#5B9722 #229697 #5E2297 #972422
split-complementary
#5B9722 #242297 #972296
monochromatic
#1F330C #3D6517 #5B9722 #79C92D #98DA5A

Accessibility & contrast

On white

3.56
#5B9722 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.89
#5B9722 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B9722
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B9722#FFFFFF#000000##000000
##5B97221.003.565.895.89
#FFFFFF3.561.0021.0021.00
#0000005.8921.001.001.00
##0000005.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8B05
Deuteranopia (green-blind)
#95862E
Tritanopia (blue-blind)
#5B9181
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #5b9722;
/* rgb */ color: rgb(91, 151, 34);
/* oklch */ color: oklch(61.3% 0.158 133.4);
Tailwind
colors: {
  custom: {
    50: '#8fb667',
    500: '#5b9722',
    950: '#000000',
  },
}
SCSS
$custom: #5b9722;
$custom-light: #8fb667;
$custom-dark: #000000;
JSON
{
  "hex": "#5b9722",
  "rgb": {
    "r": 91,
    "g": 151,
    "b": 34
  },
  "hsl": {
    "h": 90.769,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.61257,
    "c": 0.15802,
    "h": 133.4
  },
  "luminance": 0.24473
}

Semantic roles & 50–950 ramp

primary
#5B9722
secondary
#8C57BE
accent
#42E696
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5B9722

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

Preview Lab → · Contrast checker → · Palette generator →

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