#5B8716#5B8716

#5B8716 is a mid, vivid yellow-green. Relative luminance 0.196; OKLCH L 57.0% C 0.144 H 129.7°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#5B8716
RGBrgb(91, 135, 22)
HSLhsl(83, 72%, 31%)
HSVhsv(83, 84%, 53%)
CMYKcmyk(32.6%, 0%, 83.7%, 47.1%)
CIE-LABlab(51.39, -32.06, 50.54)
CIE-LCHlch(51.39, 59.85, 122.39°)
OKLaboklab(57.02% -0.0918 0.1107)
OKLCHoklch(57.02% 0.144 129.7)
XYZxyz(13.1231, 19.6096, 3.8525)
Luminance0.1961 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8716 #421687
analogous
#877A16 #5B8716 #228716
triadic
#5B8716 #165B87 #87165B
tetradic
#5B8716 #16877A #421687 #871622
square
#5B8716 #16877A #421687 #871622
split-complementary
#5B8716 #162287 #7A1687
monochromatic
#141E05 #38520D #5B8716 #7EBC1F #9EDF39

Accessibility & contrast

On white

4.27
#5B8716 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#5B8716 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8716
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8716#FFFFFF#000000##000000
##5B87161.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7C00
Deuteranopia (green-blind)
#887923
Tritanopia (blue-blind)
#5E8173
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5b8716;
/* rgb */ color: rgb(91, 135, 22);
/* oklch */ color: oklch(57.0% 0.144 129.7);
Tailwind
colors: {
  custom: {
    50: '#8eaa5f',
    500: '#5b8716',
    950: '#000000',
  },
}
SCSS
$custom: #5b8716;
$custom-light: #8eaa5f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8716",
  "rgb": {
    "r": 91,
    "g": 135,
    "b": 22
  },
  "hsl": {
    "h": 83.363,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.5702,
    "c": 0.14381,
    "h": 129.7
  },
  "luminance": 0.1961
}

Semantic roles & 50–950 ramp

primary
#5B8716
secondary
#6F3EBB
accent
#39EF80
background
#F9FAF5
surface
#F1F4EA
border
#CBCEC6
text
#0D1005
muted
#7E7F79

Preview Lab

Preview with #5B8716

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

Preview Lab → · Contrast checker → · Palette generator →

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