#5B8E17#5B8E17

#5B8E17 is a mid, vivid yellow-green. Relative luminance 0.216; OKLCH L 58.9% C 0.152 H 131.2°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#5B8E17
RGBrgb(91, 142, 23)
HSLhsl(86, 72%, 32%)
HSVhsv(86, 84%, 56%)
CMYKcmyk(35.9%, 0%, 83.8%, 44.3%)
CIE-LABlab(53.63, -35.20, 52.27)
CIE-LCHlch(53.63, 63.01, 123.96°)
OKLaboklab(58.85% -0.1002 0.1145)
OKLCHoklch(58.85% 0.152 131.2)
XYZxyz(14.1419, 21.6315, 4.2406)
Luminance0.2163 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8E17 #4A178E
analogous
#8E8517 #5B8E17 #208E17
triadic
#5B8E17 #175B8E #8E175B
tetradic
#5B8E17 #178E85 #4A178E #8E1720
square
#5B8E17 #178E85 #4A178E #8E1720
split-complementary
#5B8E17 #17208E #85178E
monochromatic
#172506 #39590E #5B8E17 #7DC320 #9BE03F

Accessibility & contrast

On white

3.94
#5B8E17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#5B8E17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8E17
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8E17#FFFFFF#000000##000000
##5B8E171.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#8E7F25
Tritanopia (blue-blind)
#5D8879
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5b8e17;
/* rgb */ color: rgb(91, 142, 23);
/* oklch */ color: oklch(58.9% 0.152 131.2);
Tailwind
colors: {
  custom: {
    50: '#8eaf61',
    500: '#5b8e17',
    950: '#000000',
  },
}
SCSS
$custom: #5b8e17;
$custom-light: #8eaf61;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8e17",
  "rgb": {
    "r": 91,
    "g": 142,
    "b": 23
  },
  "hsl": {
    "h": 85.714,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.5885,
    "c": 0.15216,
    "h": 131.2
  },
  "luminance": 0.21632
}

Semantic roles & 50–950 ramp

primary
#5B8E17
secondary
#7740C0
accent
#39EF87
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #5B8E17

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

Preview Lab → · Contrast checker → · Palette generator →

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