#5A841F#5A841F

#5A841F is a mid, vivid yellow-green. Relative luminance 0.188; OKLCH L 56.2% C 0.136 H 129.9°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#5A841F
RGBrgb(90, 132, 31)
HSLhsl(85, 62%, 32%)
HSVhsv(85, 77%, 52%)
CMYKcmyk(31.8%, 0%, 76.5%, 48.2%)
CIE-LABlab(50.42, -30.59, 46.68)
CIE-LCHlch(50.42, 55.81, 123.23°)
OKLaboklab(56.23% -0.0871 0.1041)
OKLCHoklch(56.23% 0.136 129.9)
XYZxyz(12.7150, 18.7747, 4.2500)
Luminance0.1878 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A841F #491F84
analogous
#847B1F #5A841F #28841F
triadic
#5A841F #1F5A84 #841F5A
tetradic
#5A841F #1F847B #491F84 #841F28
square
#5A841F #1F847B #491F84 #841F28
split-complementary
#5A841F #1F2884 #7B1F84
monochromatic
#162108 #385213 #5A841F #7CB62B #9AD449

Accessibility & contrast

On white

4.42
#5A841F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#5A841F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A841F
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A841F#FFFFFF#000000##000000
##5A841F1.004.424.764.76
#FFFFFF4.421.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A0A
Deuteranopia (green-blind)
#857729
Tritanopia (blue-blind)
#5C7E71
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5a841f;
/* rgb */ color: rgb(90, 132, 31);
/* oklch */ color: oklch(56.2% 0.136 129.9);
Tailwind
colors: {
  custom: {
    50: '#8ca863',
    500: '#5a841f',
    950: '#000000',
  },
}
SCSS
$custom: #5a841f;
$custom-light: #8ca863;
$custom-dark: #000000;
JSON
{
  "hex": "#5a841f",
  "rgb": {
    "r": 90,
    "g": 132,
    "b": 31
  },
  "hsl": {
    "h": 84.95,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.56229,
    "c": 0.13572,
    "h": 129.9
  },
  "luminance": 0.18775
}

Semantic roles & 50–950 ramp

primary
#5A841F
secondary
#7648B7
accent
#43E586
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F06
muted
#7D7F7A

Preview Lab

Preview with #5A841F

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

Preview Lab → · Contrast checker → · Palette generator →

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