#5A8716#5A8716

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

Color values

HEX#5A8716
RGBrgb(90, 135, 22)
HSLhsl(84, 72%, 31%)
HSVhsv(84, 84%, 53%)
CMYKcmyk(33.3%, 0%, 83.7%, 47.1%)
CIE-LABlab(51.34, -32.46, 50.46)
CIE-LCHlch(51.34, 60.00, 122.75°)
OKLaboklab(56.96% -0.0928 0.1106)
OKLCHoklch(56.96% 0.144 130)
XYZxyz(13.0252, 19.5591, 3.8479)
Luminance0.1956 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8716 #431687
analogous
#877B16 #5A8716 #218716
triadic
#5A8716 #165A87 #87165A
tetradic
#5A8716 #16877B #431687 #871621
square
#5A8716 #16877B #431687 #871621
split-complementary
#5A8716 #162187 #7B1687
monochromatic
#141E05 #37520D #5A8716 #7DBC1F #9DDF39

Accessibility & contrast

On white

4.28
#5A8716 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A8716#FFFFFF#000000##000000
##5A87161.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a8716;
/* rgb */ color: rgb(90, 135, 22);
/* oklch */ color: oklch(57.0% 0.144 130.0);
Tailwind
colors: {
  custom: {
    50: '#8daa5f',
    500: '#5a8716',
    950: '#000000',
  },
}
SCSS
$custom: #5a8716;
$custom-light: #8daa5f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8716",
  "rgb": {
    "r": 90,
    "g": 135,
    "b": 22
  },
  "hsl": {
    "h": 83.894,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.56957,
    "c": 0.14435,
    "h": 130
  },
  "luminance": 0.1956
}

Semantic roles & 50–950 ramp

primary
#5A8716
secondary
#703EBB
accent
#39EF81
background
#F9FAF5
surface
#F1F4EA
border
#CBCEC6
text
#0D1005
muted
#7E7F79

Preview Lab

Preview with #5A8716

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

Preview Lab → · Contrast checker → · Palette generator →

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