#5A911F#5A911F

#5A911F is a mid, vivid yellow-green. Relative luminance 0.225; OKLCH L 59.6% C 0.153 H 132.5°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#5A911F
RGBrgb(90, 145, 31)
HSLhsl(89, 65%, 35%)
HSVhsv(89, 79%, 57%)
CMYKcmyk(37.9%, 0%, 78.6%, 43.1%)
CIE-LABlab(54.58, -36.50, 50.67)
CIE-LCHlch(54.58, 62.45, 125.77°)
OKLaboklab(59.62% -0.1031 0.1125)
OKLCHoklch(59.62% 0.153 132.5)
XYZxyz(14.5890, 22.5227, 4.8747)
Luminance0.2252 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A911F #561F91
analogous
#918F1F #5A911F #21911F
triadic
#5A911F #1F5A91 #911F5A
tetradic
#5A911F #1F918F #561F91 #911F21
square
#5A911F #1F918F #561F91 #911F21
split-complementary
#5A911F #1F2191 #8F1F91
monochromatic
#1B2C09 #3B5F14 #5A911F #79C32A #98DA51

Accessibility & contrast

On white

3.81
#5A911F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#5A911F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A911F
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A911F#FFFFFF#000000##000000
##5A911F1.003.815.505.50
#FFFFFF3.811.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#978501
Deuteranopia (green-blind)
#90812B
Tritanopia (blue-blind)
#5B8B7C
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5a911f;
/* rgb */ color: rgb(90, 145, 31);
/* oklch */ color: oklch(59.6% 0.153 132.5);
Tailwind
colors: {
  custom: {
    50: '#8eb164',
    500: '#5a911f',
    950: '#000000',
  },
}
SCSS
$custom: #5a911f;
$custom-light: #8eb164;
$custom-dark: #000000;
JSON
{
  "hex": "#5a911f",
  "rgb": {
    "r": 90,
    "g": 145,
    "b": 31
  },
  "hsl": {
    "h": 88.947,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.59619,
    "c": 0.15257,
    "h": 132.5
  },
  "luminance": 0.22523
}

Semantic roles & 50–950 ramp

primary
#5A911F
secondary
#844FBD
accent
#40E891
background
#F9FAF6
surface
#F1F5EB
border
#CBCFC6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5A911F

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

Preview Lab → · Contrast checker → · Palette generator →

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