#5A8116#5A8116

#5A8116 is a mid, vivid yellow-green. Relative luminance 0.179; OKLCH L 55.4% C 0.137 H 128.6°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#5A8116
RGBrgb(90, 129, 22)
HSLhsl(82, 71%, 30%)
HSVhsv(82, 83%, 51%)
CMYKcmyk(30.2%, 0%, 82.9%, 49.4%)
CIE-LABlab(49.41, -29.66, 48.73)
CIE-LCHlch(49.41, 57.04, 121.32°)
OKLaboklab(55.39% -0.0852 0.1069)
OKLCHoklch(55.39% 0.137 128.6)
XYZxyz(12.2115, 17.9318, 3.5767)
Luminance0.1793 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8116 #3D1681
analogous
#817316 #5A8116 #258116
triadic
#5A8116 #165A81 #81165A
tetradic
#5A8116 #168173 #3D1681 #811625
square
#5A8116 #168173 #3D1681 #811625
split-complementary
#5A8116 #162581 #731681
monochromatic
#121A04 #364D0D #5A8116 #7EB51F #9FDD35

Accessibility & contrast

On white

4.58
#5A8116 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#5A8116 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8116
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8116#FFFFFF#000000##000000
##5A81161.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#887700
Deuteranopia (green-blind)
#827522
Tritanopia (blue-blind)
#5D7B6E
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5a8116;
/* rgb */ color: rgb(90, 129, 22);
/* oklch */ color: oklch(55.4% 0.137 128.6);
Tailwind
colors: {
  custom: {
    50: '#8da65e',
    500: '#5a8116',
    950: '#000000',
  },
}
SCSS
$custom: #5a8116;
$custom-light: #8da65e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8116",
  "rgb": {
    "r": 90,
    "g": 129,
    "b": 22
  },
  "hsl": {
    "h": 81.869,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.55392,
    "c": 0.13673,
    "h": 128.6
  },
  "luminance": 0.17932
}

Semantic roles & 50–950 ramp

primary
#5A8116
secondary
#693DB6
accent
#3AEE7C
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0D0F05
muted
#7D7F79

Preview Lab

Preview with #5A8116

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

Preview Lab → · Contrast checker → · Palette generator →

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