#5B8922#5B8922

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

Color values

HEX#5B8922
RGBrgb(91, 137, 34)
HSLhsl(87, 60%, 34%)
HSVhsv(87, 75%, 54%)
CMYKcmyk(33.6%, 0%, 75.2%, 46.3%)
CIE-LABlab(52.10, -32.33, 47.23)
CIE-LCHlch(52.10, 57.24, 124.39°)
OKLaboklab(57.61% -0.0916 0.1057)
OKLCHoklch(57.61% 0.14 130.9)
XYZxyz(13.5487, 20.2305, 4.7041)
Luminance0.2023 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8922 #502289
analogous
#898322 #5B8922 #278922
triadic
#5B8922 #225B89 #89225B
tetradic
#5B8922 #228983 #502289 #892227
square
#5B8922 #228983 #502289 #892227
split-complementary
#5B8922 #222789 #832289
monochromatic
#1A270A #3A5816 #5B8922 #7CBA2E #9AD451

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B8922#FFFFFF#000000##000000
##5B89221.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)
#8F7E0E
Deuteranopia (green-blind)
#897B2C
Tritanopia (blue-blind)
#5D8375
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5b8922;
/* rgb */ color: rgb(91, 137, 34);
/* oklch */ color: oklch(57.6% 0.140 130.9);
Tailwind
colors: {
  custom: {
    50: '#8dab65',
    500: '#5b8922',
    950: '#000000',
  },
}
SCSS
$custom: #5b8922;
$custom-light: #8dab65;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8922",
  "rgb": {
    "r": 91,
    "g": 137,
    "b": 34
  },
  "hsl": {
    "h": 86.796,
    "s": 60.234,
    "l": 33.529
  },
  "oklch": {
    "l": 0.57614,
    "c": 0.13991,
    "h": 130.9
  },
  "luminance": 0.20231
}

Semantic roles & 50–950 ramp

primary
#5B8922
secondary
#7E4FB8
accent
#44E38B
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D1006
muted
#7D7F7A

Preview Lab

Preview with #5B8922

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

Preview Lab → · Contrast checker → · Palette generator →

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