#5B9522#5B9522

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

Color values

HEX#5B9522
RGBrgb(91, 149, 34)
HSLhsl(90, 63%, 36%)
HSVhsv(90, 77%, 58%)
CMYKcmyk(38.9%, 0%, 77.2%, 41.6%)
CIE-LABlab(55.92, -37.72, 50.96)
CIE-LCHlch(55.92, 63.40, 126.51°)
OKLaboklab(60.74% -0.1062 0.1135)
OKLCHoklch(60.74% 0.155 133.1)
XYZxyz(15.3503, 23.8338, 5.3046)
Luminance0.2384 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B9522 #5C2295
analogous
#949522 #5B9522 #229522
triadic
#5B9522 #225B95 #95225B
tetradic
#5B9522 #229495 #5C2295 #952222
square
#5B9522 #229495 #5C2295 #952222
split-complementary
#5B9522 #222295 #952294
monochromatic
#1E310B #3D6317 #5B9522 #79C72D #98D958

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B9522#FFFFFF#000000##000000
##5B95221.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)
#9B8906
Deuteranopia (green-blind)
#93842E
Tritanopia (blue-blind)
#5B8F7F
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5b9522;
/* rgb */ color: rgb(91, 149, 34);
/* oklch */ color: oklch(60.7% 0.155 133.1);
Tailwind
colors: {
  custom: {
    50: '#8fb466',
    500: '#5b9522',
    950: '#000000',
  },
}
SCSS
$custom: #5b9522;
$custom-light: #8fb466;
$custom-dark: #000000;
JSON
{
  "hex": "#5b9522",
  "rgb": {
    "r": 91,
    "g": 149,
    "b": 34
  },
  "hsl": {
    "h": 90.261,
    "s": 62.842,
    "l": 35.882
  },
  "oklch": {
    "l": 0.60737,
    "c": 0.15547,
    "h": 133.1
  },
  "luminance": 0.23835
}

Semantic roles & 50–950 ramp

primary
#5B9522
secondary
#8A56BD
accent
#42E695
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5B9522

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

Preview Lab → · Contrast checker → · Palette generator →

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