#5A8917#5A8917

#5A8917 is a mid, vivid yellow-green. Relative luminance 0.201; OKLCH L 57.5% C 0.146 H 130.5°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#5A8917
RGBrgb(90, 137, 23)
HSLhsl(85, 71%, 31%)
HSVhsv(85, 83%, 54%)
CMYKcmyk(34.3%, 0%, 83.2%, 46.3%)
CIE-LABlab(51.98, -33.33, 50.76)
CIE-LCHlch(51.98, 60.72, 123.29°)
OKLaboklab(57.49% -0.095 0.1114)
OKLCHoklch(57.49% 0.146 130.5)
XYZxyz(13.3167, 20.1264, 3.9936)
Luminance0.2013 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8917 #461789
analogous
#897F17 #5A8917 #218917
triadic
#5A8917 #175A89 #89175A
tetradic
#5A8917 #17897F #461789 #891721
square
#5A8917 #17897F #461789 #891721
split-complementary
#5A8917 #172189 #7F1789
monochromatic
#152005 #38550E #5A8917 #7CBD20 #9BDE3C

Accessibility & contrast

On white

4.18
#5A8917 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#5A8917 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8917
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8917#FFFFFF#000000##000000
##5A89171.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#907E00
Deuteranopia (green-blind)
#897B24
Tritanopia (blue-blind)
#5C8374
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5a8917;
/* rgb */ color: rgb(90, 137, 23);
/* oklch */ color: oklch(57.5% 0.146 130.5);
Tailwind
colors: {
  custom: {
    50: '#8dab60',
    500: '#5a8917',
    950: '#000000',
  },
}
SCSS
$custom: #5a8917;
$custom-light: #8dab60;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8917",
  "rgb": {
    "r": 90,
    "g": 137,
    "b": 23
  },
  "hsl": {
    "h": 84.737,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.57485,
    "c": 0.14642,
    "h": 130.5
  },
  "luminance": 0.20127
}

Semantic roles & 50–950 ramp

primary
#5A8917
secondary
#733FBD
accent
#3AEE84
background
#F9FAF5
surface
#F1F4EA
border
#CBCEC6
text
#0D1005
muted
#7E7F79

Preview Lab

Preview with #5A8917

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

Preview Lab → · Contrast checker → · Palette generator →

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