#5A8916#5A8916

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

Color values

HEX#5A8916
RGBrgb(90, 137, 22)
HSLhsl(85, 72%, 31%)
HSVhsv(85, 84%, 54%)
CMYKcmyk(34.3%, 0%, 83.9%, 46.3%)
CIE-LABlab(51.98, -33.37, 51.04)
CIE-LCHlch(51.98, 60.98, 123.18°)
OKLaboklab(57.48% -0.0952 0.1118)
OKLCHoklch(57.48% 0.147 130.4)
XYZxyz(13.3069, 20.1224, 3.9418)
Luminance0.2012 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8916 #451689
analogous
#897E16 #5A8916 #208916
triadic
#5A8916 #165A89 #89165A
tetradic
#5A8916 #16897E #451689 #891620
square
#5A8916 #16897E #451689 #891620
split-complementary
#5A8916 #162089 #7E1689
monochromatic
#152005 #37540E #5A8916 #7DBE1E #9CDF3A

Accessibility & contrast

On white

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

On black

5.02
#5A8916 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8916
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8916#FFFFFF#000000##000000
##5A89161.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.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: #5a8916;
/* rgb */ color: rgb(90, 137, 22);
/* oklch */ color: oklch(57.5% 0.147 130.4);
Tailwind
colors: {
  custom: {
    50: '#8dab5f',
    500: '#5a8916',
    950: '#000000',
  },
}
SCSS
$custom: #5a8916;
$custom-light: #8dab5f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8916",
  "rgb": {
    "r": 90,
    "g": 137,
    "b": 22
  },
  "hsl": {
    "h": 84.522,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.5748,
    "c": 0.14687,
    "h": 130.4
  },
  "luminance": 0.20123
}

Semantic roles & 50–950 ramp

primary
#5A8916
secondary
#723EBD
accent
#39EF83
background
#F9FAF5
surface
#F1F4EA
border
#CBCEC6
text
#0D1005
muted
#7E7F79

Preview Lab

Preview with #5A8916

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

Preview Lab → · Contrast checker → · Palette generator →

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