#5A8519#5A8519

#5A8519 is a mid, vivid yellow-green. Relative luminance 0.190; OKLCH L 56.5% C 0.140 H 129.7°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#5A8519
RGBrgb(90, 133, 25)
HSLhsl(84, 68%, 31%)
HSVhsv(84, 81%, 52%)
CMYKcmyk(32.3%, 0%, 81.2%, 47.8%)
CIE-LABlab(50.71, -31.39, 48.99)
CIE-LCHlch(50.71, 58.18, 122.65°)
OKLaboklab(56.45% -0.0897 0.108)
OKLCHoklch(56.45% 0.14 129.7)
XYZxyz(12.7794, 19.0185, 3.9171)
Luminance0.1902 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8519 #441985
analogous
#857A19 #5A8519 #248519
triadic
#5A8519 #195A85 #85195A
tetradic
#5A8519 #19857A #441985 #851924
square
#5A8519 #19857A #441985 #851924
split-complementary
#5A8519 #192485 #7A1985
monochromatic
#141E06 #37510F #5A8519 #7DB923 #9CDB3E

Accessibility & contrast

On white

4.37
#5A8519 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#5A8519 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8519
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8519#FFFFFF#000000##000000
##5A85191.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#867825
Tritanopia (blue-blind)
#5D7F71
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5a8519;
/* rgb */ color: rgb(90, 133, 25);
/* oklch */ color: oklch(56.5% 0.140 129.7);
Tailwind
colors: {
  custom: {
    50: '#8da860',
    500: '#5a8519',
    950: '#000000',
  },
}
SCSS
$custom: #5a8519;
$custom-light: #8da860;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8519",
  "rgb": {
    "r": 90,
    "g": 133,
    "b": 25
  },
  "hsl": {
    "h": 83.889,
    "s": 68.354,
    "l": 30.98
  },
  "oklch": {
    "l": 0.56451,
    "c": 0.14037,
    "h": 129.7
  },
  "luminance": 0.19019
}

Semantic roles & 50–950 ramp

primary
#5A8519
secondary
#7141B9
accent
#3DEB82
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0D0F05
muted
#7D7F79

Preview Lab

Preview with #5A8519

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

Preview Lab → · Contrast checker → · Palette generator →

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