#5A8D15#5A8D15

#5A8D15 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#5A8D15
RGBrgb(90, 141, 21)
HSLhsl(86, 74%, 32%)
HSVhsv(86, 85%, 55%)
CMYKcmyk(36.2%, 0%, 85.1%, 44.7%)
CIE-LABlab(53.25, -35.22, 52.44)
CIE-LCHlch(53.25, 63.17, 123.88°)
OKLaboklab(58.52% -0.1003 0.1146)
OKLCHoklch(58.52% 0.152 131.2)
XYZxyz(13.8766, 21.2770, 4.0851)
Luminance0.2128 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8D15 #48158D
analogous
#8D8415 #5A8D15 #1E8D15
triadic
#5A8D15 #155A8D #8D155A
tetradic
#5A8D15 #158D84 #48158D #8D151E
square
#5A8D15 #158D84 #48158D #8D151E
split-complementary
#5A8D15 #151E8D #84158D
monochromatic
#162205 #38580D #5A8D15 #7CC21D #9BE23B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A8D15#FFFFFF#000000##000000
##5A8D151.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: #5a8d15;
/* rgb */ color: rgb(90, 141, 21);
/* oklch */ color: oklch(58.5% 0.152 131.2);
Tailwind
colors: {
  custom: {
    50: '#8eae60',
    500: '#5a8d15',
    950: '#000000',
  },
}
SCSS
$custom: #5a8d15;
$custom-light: #8eae60;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8d15",
  "rgb": {
    "r": 90,
    "g": 141,
    "b": 21
  },
  "hsl": {
    "h": 85.5,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.5852,
    "c": 0.1523,
    "h": 131.2
  },
  "luminance": 0.21278
}

Semantic roles & 50–950 ramp

primary
#5A8D15
secondary
#753DC1
accent
#37F186
background
#F9FAF5
surface
#F1F4EA
border
#CBCEC6
text
#0D1005
muted
#7E7F79

Preview Lab

Preview with #5A8D15

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

Preview Lab → · Contrast checker → · Palette generator →

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