#5B8017#5B8017

#5B8017 is a mid, vivid yellow-green. Relative luminance 0.177; OKLCH L 55.2% C 0.134 H 128.0°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#5B8017
RGBrgb(91, 128, 23)
HSLhsl(81, 70%, 30%)
HSVhsv(81, 82%, 50%)
CMYKcmyk(28.9%, 0%, 82%, 49.8%)
CIE-LABlab(49.16, -28.72, 48.22)
CIE-LCHlch(49.16, 56.12, 120.78°)
OKLaboklab(55.2% -0.0827 0.106)
OKLCHoklch(55.2% 0.134 128)
XYZxyz(12.1882, 17.7241, 3.5894)
Luminance0.1772 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8017 #3C1780
analogous
#807117 #5B8017 #278017
triadic
#5B8017 #175B80 #80175B
tetradic
#5B8017 #178071 #3C1780 #801727
square
#5B8017 #178071 #3C1780 #801727
split-complementary
#5B8017 #172780 #711780
monochromatic
#121A05 #364C0E #5B8017 #80B420 #A1DB36

Accessibility & contrast

On white

4.62
#5B8017 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#5B8017 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5B8017
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8017#FFFFFF#000000##FFFFFF
##5B80171.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877600
Deuteranopia (green-blind)
#827422
Tritanopia (blue-blind)
#5F7A6D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5b8017;
/* rgb */ color: rgb(91, 128, 23);
/* oklch */ color: oklch(55.2% 0.134 128.0);
Tailwind
colors: {
  custom: {
    50: '#8da55e',
    500: '#5b8017',
    950: '#000000',
  },
}
SCSS
$custom: #5b8017;
$custom-light: #8da55e;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8017",
  "rgb": {
    "r": 91,
    "g": 128,
    "b": 23
  },
  "hsl": {
    "h": 81.143,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.55203,
    "c": 0.13442,
    "h": 128
  },
  "luminance": 0.17724
}

Semantic roles & 50–950 ramp

primary
#5B8017
secondary
#683EB4
accent
#3BEC7A
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0D0F05
muted
#7D7F79

Preview Lab

Preview with #5B8017

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

Preview Lab → · Contrast checker → · Palette generator →

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