#5B8D1A#5B8D1A

#5B8D1A is a mid, vivid yellow-green. Relative luminance 0.213; OKLCH L 58.6% C 0.150 H 131.1°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#5B8D1A
RGBrgb(91, 141, 26)
HSLhsl(86, 69%, 33%)
HSVhsv(86, 82%, 55%)
CMYKcmyk(35.5%, 0%, 81.6%, 44.7%)
CIE-LABlab(53.33, -34.61, 51.11)
CIE-LCHlch(53.33, 61.73, 124.10°)
OKLaboklab(58.6% -0.0984 0.1126)
OKLCHoklch(58.6% 0.15 131.1)
XYZxyz(14.0256, 21.3479, 4.3587)
Luminance0.2135 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8D1A #4C1A8D
analogous
#8D851A #5B8D1A #228D1A
triadic
#5B8D1A #1A5B8D #8D1A5B
tetradic
#5B8D1A #1A8D85 #4C1A8D #8D1A22
square
#5B8D1A #1A8D85 #4C1A8D #8D1A22
split-complementary
#5B8D1A #1A228D #851A8D
monochromatic
#182607 #3A5910 #5B8D1A #7CC124 #9BDD45

Accessibility & contrast

On white

3.99
#5B8D1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#5B8D1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8D1A
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8D1A#FFFFFF#000000##000000
##5B8D1A1.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#8D7E27
Tritanopia (blue-blind)
#5D8778
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5b8d1a;
/* rgb */ color: rgb(91, 141, 26);
/* oklch */ color: oklch(58.6% 0.150 131.1);
Tailwind
colors: {
  custom: {
    50: '#8eae62',
    500: '#5b8d1a',
    950: '#000000',
  },
}
SCSS
$custom: #5b8d1a;
$custom-light: #8eae62;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8d1a",
  "rgb": {
    "r": 91,
    "g": 141,
    "b": 26
  },
  "hsl": {
    "h": 86.087,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.58604,
    "c": 0.14952,
    "h": 131.1
  },
  "luminance": 0.21348
}

Semantic roles & 50–950 ramp

primary
#5B8D1A
secondary
#7A45BE
accent
#3CEC88
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #5B8D1A

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

Preview Lab → · Contrast checker → · Palette generator →

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