#5B8517#5B8517

#5B8517 is a mid, vivid yellow-green. Relative luminance 0.191; OKLCH L 56.5% C 0.141 H 129.2°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#5B8517
RGBrgb(91, 133, 23)
HSLhsl(83, 71%, 31%)
HSVhsv(83, 83%, 52%)
CMYKcmyk(31.6%, 0%, 82.7%, 47.8%)
CIE-LABlab(50.76, -31.09, 49.67)
CIE-LCHlch(50.76, 58.60, 122.04°)
OKLaboklab(56.5% -0.0891 0.1091)
OKLCHoklch(56.5% 0.141 129.2)
XYZxyz(12.8565, 19.0607, 3.8122)
Luminance0.1906 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8517 #411785
analogous
#857817 #5B8517 #248517
triadic
#5B8517 #175B85 #85175B
tetradic
#5B8517 #178578 #411785 #851724
square
#5B8517 #178578 #411785 #851724
split-complementary
#5B8517 #172485 #781785
monochromatic
#141D05 #37510E #5B8517 #7FB920 #9EDD3A

Accessibility & contrast

On white

4.36
#5B8517 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#5B8517 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8517
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8517#FFFFFF#000000##000000
##5B85171.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#867823
Tritanopia (blue-blind)
#5E7F71
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5b8517;
/* rgb */ color: rgb(91, 133, 23);
/* oklch */ color: oklch(56.5% 0.141 129.2);
Tailwind
colors: {
  custom: {
    50: '#8ea85f',
    500: '#5b8517',
    950: '#000000',
  },
}
SCSS
$custom: #5b8517;
$custom-light: #8ea85f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8517",
  "rgb": {
    "r": 91,
    "g": 133,
    "b": 23
  },
  "hsl": {
    "h": 82.909,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.56504,
    "c": 0.14081,
    "h": 129.2
  },
  "luminance": 0.19061
}

Semantic roles & 50–950 ramp

primary
#5B8517
secondary
#6D3FB9
accent
#3BED7F
background
#F9FAF5
surface
#F1F4EA
border
#CBCEC6
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5B8517

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

Preview Lab → · Contrast checker → · Palette generator →

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