#5A8D19#5A8D19

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

Color values

HEX#5A8D19
RGBrgb(90, 141, 25)
HSLhsl(86, 70%, 33%)
HSVhsv(86, 82%, 55%)
CMYKcmyk(36.2%, 0%, 82.3%, 44.7%)
CIE-LABlab(53.27, -35.04, 51.34)
CIE-LCHlch(53.27, 62.16, 124.31°)
OKLaboklab(58.54% -0.0995 0.1129)
OKLCHoklch(58.54% 0.151 131.4)
XYZxyz(13.9167, 21.2930, 4.2962)
Luminance0.2129 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8D19 #4C198D
analogous
#8D8619 #5A8D19 #208D19
triadic
#5A8D19 #195A8D #8D195A
tetradic
#5A8D19 #198D86 #4C198D #8D1920
square
#5A8D19 #198D86 #4C198D #8D1920
split-complementary
#5A8D19 #19208D #86198D
monochromatic
#182507 #395910 #5A8D19 #7BC122 #9ADE43

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #5a8d19;
/* rgb */ color: rgb(90, 141, 25);
/* oklch */ color: oklch(58.5% 0.151 131.4);
Tailwind
colors: {
  custom: {
    50: '#8dae61',
    500: '#5a8d19',
    950: '#000000',
  },
}
SCSS
$custom: #5a8d19;
$custom-light: #8dae61;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8d19",
  "rgb": {
    "r": 90,
    "g": 141,
    "b": 25
  },
  "hsl": {
    "h": 86.379,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.5854,
    "c": 0.15054,
    "h": 131.4
  },
  "luminance": 0.21294
}

Semantic roles & 50–950 ramp

primary
#5A8D19
secondary
#7943BF
accent
#3BED89
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #5A8D19

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

Preview Lab → · Contrast checker → · Palette generator →

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