#5B8D17#5B8D17

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

Color values

HEX#5B8D17
RGBrgb(91, 141, 23)
HSLhsl(85, 72%, 32%)
HSVhsv(85, 84%, 55%)
CMYKcmyk(35.5%, 0%, 83.7%, 44.7%)
CIE-LABlab(53.31, -34.75, 51.98)
CIE-LCHlch(53.31, 62.52, 123.76°)
OKLaboklab(58.59% -0.0989 0.1139)
OKLCHoklch(58.59% 0.151 131)
XYZxyz(13.9938, 21.3352, 4.1912)
Luminance0.2134 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8D17 #49178D
analogous
#8D8417 #5B8D17 #208D17
triadic
#5B8D17 #175B8D #8D175B
tetradic
#5B8D17 #178D84 #49178D #8D1720
square
#5B8D17 #178D84 #49178D #8D1720
split-complementary
#5B8D17 #17208D #84178D
monochromatic
#172406 #39580E #5B8D17 #7DC220 #9BE03F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B8D17#FFFFFF#000000##000000
##5B8D171.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)
#8D7E25
Tritanopia (blue-blind)
#5D8778
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5b8d17;
/* rgb */ color: rgb(91, 141, 23);
/* oklch */ color: oklch(58.6% 0.151 131.0);
Tailwind
colors: {
  custom: {
    50: '#8eae60',
    500: '#5b8d17',
    950: '#000000',
  },
}
SCSS
$custom: #5b8d17;
$custom-light: #8eae60;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8d17",
  "rgb": {
    "r": 91,
    "g": 141,
    "b": 23
  },
  "hsl": {
    "h": 85.424,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.58589,
    "c": 0.1509,
    "h": 131
  },
  "luminance": 0.21336
}

Semantic roles & 50–950 ramp

primary
#5B8D17
secondary
#7640C0
accent
#39EF86
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #5B8D17

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

Preview Lab → · Contrast checker → · Palette generator →

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