#5A8719#5A8719

#5A8719 is a mid, vivid yellow-green. Relative luminance 0.196; OKLCH L 57.0% C 0.143 H 130.2°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#5A8719
RGBrgb(90, 135, 25)
HSLhsl(85, 69%, 31%)
HSVhsv(85, 81%, 53%)
CMYKcmyk(33.3%, 0%, 81.5%, 47.1%)
CIE-LABlab(51.35, -32.31, 49.58)
CIE-LCHlch(51.35, 59.18, 123.09°)
OKLaboklab(56.97% -0.0922 0.1092)
OKLCHoklch(56.97% 0.143 130.2)
XYZxyz(13.0558, 19.5714, 4.0093)
Luminance0.1957 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8719 #461987
analogous
#877D19 #5A8719 #238719
triadic
#5A8719 #195A87 #87195A
tetradic
#5A8719 #19877D #461987 #871923
square
#5A8719 #19877D #461987 #871923
split-complementary
#5A8719 #192387 #7D1987
monochromatic
#152006 #38530F #5A8719 #7CBB23 #9BDB3F

Accessibility & contrast

On white

4.27
#5A8719 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#5A8719 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8719
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8719#FFFFFF#000000##000000
##5A87191.004.274.914.91
#FFFFFF4.271.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7C00
Deuteranopia (green-blind)
#877925
Tritanopia (blue-blind)
#5C8173
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5a8719;
/* rgb */ color: rgb(90, 135, 25);
/* oklch */ color: oklch(57.0% 0.143 130.2);
Tailwind
colors: {
  custom: {
    50: '#8daa60',
    500: '#5a8719',
    950: '#000000',
  },
}
SCSS
$custom: #5a8719;
$custom-light: #8daa60;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8719",
  "rgb": {
    "r": 90,
    "g": 135,
    "b": 25
  },
  "hsl": {
    "h": 84.545,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.56973,
    "c": 0.14293,
    "h": 130.2
  },
  "luminance": 0.19572
}

Semantic roles & 50–950 ramp

primary
#5A8719
secondary
#7341BA
accent
#3CEC84
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D1005
muted
#7D7F7A

Preview Lab

Preview with #5A8719

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

Preview Lab → · Contrast checker → · Palette generator →

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