#5A8016#5A8016

#5A8016 is a mid, vivid yellow-green. Relative luminance 0.177; OKLCH L 55.1% C 0.135 H 128.3°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#5A8016
RGBrgb(90, 128, 22)
HSLhsl(82, 71%, 29%)
HSVhsv(82, 83%, 50%)
CMYKcmyk(29.7%, 0%, 82.8%, 49.8%)
CIE-LABlab(49.09, -29.18, 48.44)
CIE-LCHlch(49.09, 56.55, 121.07°)
OKLaboklab(55.13% -0.0839 0.1063)
OKLCHoklch(55.13% 0.135 128.3)
XYZxyz(12.0804, 17.6696, 3.5330)
Luminance0.1767 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8016 #3C1680
analogous
#807116 #5A8016 #258016
triadic
#5A8016 #165A80 #80165A
tetradic
#5A8016 #168071 #3C1680 #801625
square
#5A8016 #168071 #3C1680 #801625
split-complementary
#5A8016 #162580 #711680
monochromatic
#121A04 #354C0D #5A8016 #7FB41F #A0DC34

Accessibility & contrast

On white

4.63
#5A8016 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#5A8016 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5A8016
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8016#FFFFFF#000000##FFFFFF
##5A80161.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877600
Deuteranopia (green-blind)
#827422
Tritanopia (blue-blind)
#5D7A6D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5a8016;
/* rgb */ color: rgb(90, 128, 22);
/* oklch */ color: oklch(55.1% 0.135 128.3);
Tailwind
colors: {
  custom: {
    50: '#8da55e',
    500: '#5a8016',
    950: '#000000',
  },
}
SCSS
$custom: #5a8016;
$custom-light: #8da55e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8016",
  "rgb": {
    "r": 90,
    "g": 128,
    "b": 22
  },
  "hsl": {
    "h": 81.509,
    "s": 70.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.55131,
    "c": 0.13545,
    "h": 128.3
  },
  "luminance": 0.1767
}

Semantic roles & 50–950 ramp

primary
#5A8016
secondary
#683DB5
accent
#3AED7B
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0D0F05
muted
#7D7F79

Preview Lab

Preview with #5A8016

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

Preview Lab → · Contrast checker → · Palette generator →

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