#5A8D18#5A8D18

#5A8D18 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#5A8D18
RGBrgb(90, 141, 24)
HSLhsl(86, 71%, 32%)
HSVhsv(86, 83%, 55%)
CMYKcmyk(36.2%, 0%, 83%, 44.7%)
CIE-LABlab(53.26, -35.09, 51.63)
CIE-LCHlch(53.26, 62.42, 124.20°)
OKLaboklab(58.53% -0.0997 0.1134)
OKLCHoklch(58.53% 0.151 131.3)
XYZxyz(13.9061, 21.2888, 4.2404)
Luminance0.2129 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8D18 #4B188D
analogous
#8D8618 #5A8D18 #1F8D18
triadic
#5A8D18 #185A8D #8D185A
tetradic
#5A8D18 #188D86 #4B188D #8D181F
square
#5A8D18 #188D86 #4B188D #8D181F
split-complementary
#5A8D18 #181F8D #86188D
monochromatic
#172406 #39590F #5A8D18 #7BC121 #9ADF41

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A8D18#FFFFFF#000000##000000
##5A8D181.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)
#8D7E26
Tritanopia (blue-blind)
#5C8778
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5a8d18;
/* rgb */ color: rgb(90, 141, 24);
/* oklch */ color: oklch(58.5% 0.151 131.3);
Tailwind
colors: {
  custom: {
    50: '#8eae61',
    500: '#5a8d18',
    950: '#000000',
  },
}
SCSS
$custom: #5a8d18;
$custom-light: #8eae61;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8d18",
  "rgb": {
    "r": 90,
    "g": 141,
    "b": 24
  },
  "hsl": {
    "h": 86.154,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.58534,
    "c": 0.151,
    "h": 131.3
  },
  "luminance": 0.21289
}

Semantic roles & 50–950 ramp

primary
#5A8D18
secondary
#7842BF
accent
#3AEE88
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #5A8D18

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

Preview Lab → · Contrast checker → · Palette generator →

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