#5B8417#5B8417

#5B8417 is a mid, vivid yellow-green. Relative luminance 0.188; OKLCH L 56.2% C 0.140 H 129.0°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#5B8417
RGBrgb(91, 132, 23)
HSLhsl(83, 70%, 30%)
HSVhsv(83, 83%, 52%)
CMYKcmyk(31.1%, 0%, 82.6%, 48.2%)
CIE-LABlab(50.44, -30.62, 49.38)
CIE-LCHlch(50.44, 58.10, 121.80°)
OKLaboklab(56.24% -0.0878 0.1085)
OKLCHoklch(56.24% 0.14 129)
XYZxyz(12.7203, 18.7882, 3.7667)
Luminance0.1879 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8417 #401784
analogous
#847617 #5B8417 #248417
triadic
#5B8417 #175B84 #84175B
tetradic
#5B8417 #178476 #401784 #841724
square
#5B8417 #178476 #401784 #841724
split-complementary
#5B8417 #172484 #761784
monochromatic
#131C05 #37500E #5B8417 #7FB820 #9FDC39

Accessibility & contrast

On white

4.41
#5B8417 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#5B8417 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8417
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8417#FFFFFF#000000##000000
##5B84171.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#857723
Tritanopia (blue-blind)
#5E7E70
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5b8417;
/* rgb */ color: rgb(91, 132, 23);
/* oklch */ color: oklch(56.2% 0.140 129.0);
Tailwind
colors: {
  custom: {
    50: '#8da85f',
    500: '#5b8417',
    950: '#000000',
  },
}
SCSS
$custom: #5b8417;
$custom-light: #8da85f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8417",
  "rgb": {
    "r": 91,
    "g": 132,
    "b": 23
  },
  "hsl": {
    "h": 82.569,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.56244,
    "c": 0.13954,
    "h": 129
  },
  "luminance": 0.18789
}

Semantic roles & 50–950 ramp

primary
#5B8417
secondary
#6C3FB8
accent
#3BED7E
background
#F9FAF5
surface
#F1F4EA
border
#CBCEC6
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5B8417

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

Preview Lab → · Contrast checker → · Palette generator →

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