#5A8D16#5A8D16

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

Color values

HEX#5A8D16
RGBrgb(90, 141, 22)
HSLhsl(86, 73%, 32%)
HSVhsv(86, 84%, 55%)
CMYKcmyk(36.2%, 0%, 84.4%, 44.7%)
CIE-LABlab(53.26, -35.18, 52.18)
CIE-LCHlch(53.26, 62.93, 123.98°)
OKLaboklab(58.53% -0.1001 0.1142)
OKLCHoklch(58.53% 0.152 131.2)
XYZxyz(13.8860, 21.2808, 4.1349)
Luminance0.2128 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8D16 #49168D
analogous
#8D8516 #5A8D16 #1F8D16
triadic
#5A8D16 #165A8D #8D165A
tetradic
#5A8D16 #168D85 #49168D #8D161F
square
#5A8D16 #168D85 #49168D #8D161F
split-complementary
#5A8D16 #161F8D #85168D
monochromatic
#162305 #38580E #5A8D16 #7CC21E #9AE13D

Accessibility & contrast

On white

4.00
#5A8D16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A8D16#FFFFFF#000000##000000
##5A8D161.004.005.265.26
#FFFFFF4.001.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a8d16;
/* rgb */ color: rgb(90, 141, 22);
/* oklch */ color: oklch(58.5% 0.152 131.2);
Tailwind
colors: {
  custom: {
    50: '#8eae60',
    500: '#5a8d16',
    950: '#000000',
  },
}
SCSS
$custom: #5a8d16;
$custom-light: #8eae60;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8d16",
  "rgb": {
    "r": 90,
    "g": 141,
    "b": 22
  },
  "hsl": {
    "h": 85.714,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.58525,
    "c": 0.15188,
    "h": 131.2
  },
  "luminance": 0.21281
}

Semantic roles & 50–950 ramp

primary
#5A8D16
secondary
#763EC1
accent
#38F087
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #5A8D16

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

Preview Lab → · Contrast checker → · Palette generator →

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