#5D8017#5D8017

#5D8017 is a mid, vivid yellow-green. Relative luminance 0.178; OKLCH L 55.3% C 0.133 H 127.2°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#5D8017
RGBrgb(93, 128, 23)
HSLhsl(80, 70%, 30%)
HSVhsv(80, 82%, 50%)
CMYKcmyk(27.3%, 0%, 82%, 49.8%)
CIE-LABlab(49.29, -27.90, 48.38)
CIE-LCHlch(49.29, 55.84, 119.97°)
OKLaboklab(55.34% -0.0806 0.1063)
OKLCHoklch(55.34% 0.133 127.2)
XYZxyz(12.3881, 17.8271, 3.5987)
Luminance0.1783 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D8017 #3A1780
analogous
#806F17 #5D8017 #298017
triadic
#5D8017 #175D80 #80175D
tetradic
#5D8017 #17806F #3A1780 #801729
square
#5D8017 #17806F #3A1780 #801729
split-complementary
#5D8017 #172980 #6F1780
monochromatic
#131A05 #374C0E #5D8017 #83B420 #A4DB36

Accessibility & contrast

On white

4.60
#5D8017 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#5D8017 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5D8017
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D8017#FFFFFF#000000##FFFFFF
##5D80171.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877700
Deuteranopia (green-blind)
#827422
Tritanopia (blue-blind)
#617A6D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5d8017;
/* rgb */ color: rgb(93, 128, 23);
/* oklch */ color: oklch(55.3% 0.133 127.2);
Tailwind
colors: {
  custom: {
    50: '#8fa55e',
    500: '#5d8017',
    950: '#000000',
  },
}
SCSS
$custom: #5d8017;
$custom-light: #8fa55e;
$custom-dark: #000000;
JSON
{
  "hex": "#5d8017",
  "rgb": {
    "r": 93,
    "g": 128,
    "b": 23
  },
  "hsl": {
    "h": 80,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.55339,
    "c": 0.13335,
    "h": 127.2
  },
  "luminance": 0.17827
}

Semantic roles & 50–950 ramp

primary
#5D8017
secondary
#663EB4
accent
#3BEC76
background
#F9FAF5
surface
#F1F4EA
border
#CBCEC6
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5D8017

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

Preview Lab → · Contrast checker → · Palette generator →

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