#5B8D16#5B8D16

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

Color values

HEX#5B8D16
RGBrgb(91, 141, 22)
HSLhsl(85, 73%, 32%)
HSVhsv(85, 84%, 55%)
CMYKcmyk(35.5%, 0%, 84.4%, 44.7%)
CIE-LABlab(53.31, -34.79, 52.25)
CIE-LCHlch(53.31, 62.77, 123.66°)
OKLaboklab(58.58% -0.0991 0.1144)
OKLCHoklch(58.58% 0.151 130.9)
XYZxyz(13.9840, 21.3313, 4.1395)
Luminance0.2133 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8D16 #48168D
analogous
#8D8416 #5B8D16 #208D16
triadic
#5B8D16 #165B8D #8D165B
tetradic
#5B8D16 #168D84 #48168D #8D1620
square
#5B8D16 #168D84 #48168D #8D1620
split-complementary
#5B8D16 #16208D #84168D
monochromatic
#172305 #39580E #5B8D16 #7DC21E #9CE13D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #5b8d16;
/* rgb */ color: rgb(91, 141, 22);
/* oklch */ color: oklch(58.6% 0.151 130.9);
Tailwind
colors: {
  custom: {
    50: '#8eae60',
    500: '#5b8d16',
    950: '#000000',
  },
}
SCSS
$custom: #5b8d16;
$custom-light: #8eae60;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8d16",
  "rgb": {
    "r": 91,
    "g": 141,
    "b": 22
  },
  "hsl": {
    "h": 85.21,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.58584,
    "c": 0.15134,
    "h": 130.9
  },
  "luminance": 0.21332
}

Semantic roles & 50–950 ramp

primary
#5B8D16
secondary
#753EC1
accent
#38F085
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #5B8D16

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

Preview Lab → · Contrast checker → · Palette generator →

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