#5A8D17#5A8D17

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

Color values

HEX#5A8D17
RGBrgb(90, 141, 23)
HSLhsl(86, 72%, 32%)
HSVhsv(86, 84%, 55%)
CMYKcmyk(36.2%, 0%, 83.7%, 44.7%)
CIE-LABlab(53.26, -35.13, 51.91)
CIE-LCHlch(53.26, 62.68, 124.09°)
OKLaboklab(58.53% -0.0999 0.1138)
OKLCHoklch(58.53% 0.151 131.3)
XYZxyz(13.8959, 21.2847, 4.1867)
Luminance0.2129 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8D17 #4A178D
analogous
#8D8517 #5A8D17 #1F8D17
triadic
#5A8D17 #175A8D #8D175A
tetradic
#5A8D17 #178D85 #4A178D #8D171F
square
#5A8D17 #178D85 #4A178D #8D171F
split-complementary
#5A8D17 #171F8D #85178D
monochromatic
#172406 #38580E #5A8D17 #7CC220 #9AE03F

Accessibility & contrast

On white

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

On black

5.26
#5A8D17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8D17
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8D17#FFFFFF#000000##000000
##5A8D171.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#8D7E25
Tritanopia (blue-blind)
#5C8778
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5a8d17;
/* rgb */ color: rgb(90, 141, 23);
/* oklch */ color: oklch(58.5% 0.151 131.3);
Tailwind
colors: {
  custom: {
    50: '#8eae60',
    500: '#5a8d17',
    950: '#000000',
  },
}
SCSS
$custom: #5a8d17;
$custom-light: #8eae60;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8d17",
  "rgb": {
    "r": 90,
    "g": 141,
    "b": 23
  },
  "hsl": {
    "h": 85.932,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.58529,
    "c": 0.15145,
    "h": 131.3
  },
  "luminance": 0.21285
}

Semantic roles & 50–950 ramp

primary
#5A8D17
secondary
#7740C0
accent
#39EF88
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #5A8D17

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

Preview Lab → · Contrast checker → · Palette generator →

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