#5A861D#5A861D

#5A861D is a mid, vivid yellow-green. Relative luminance 0.193; OKLCH L 56.7% C 0.140 H 130.2°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#5A861D
RGBrgb(90, 134, 29)
HSLhsl(85, 64%, 32%)
HSVhsv(85, 78%, 53%)
CMYKcmyk(32.8%, 0%, 78.4%, 47.5%)
CIE-LABlab(51.05, -31.64, 47.99)
CIE-LCHlch(51.05, 57.48, 123.39°)
OKLaboklab(56.74% -0.0901 0.1065)
OKLCHoklch(56.74% 0.14 130.2)
XYZxyz(12.9632, 19.3121, 4.2068)
Luminance0.1931 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A861D #491D86
analogous
#867E1D #5A861D #26861D
triadic
#5A861D #1D5A86 #861D5A
tetradic
#5A861D #1D867E #491D86 #861D26
square
#5A861D #1D867E #491D86 #861D26
split-complementary
#5A861D #1D2686 #7E1D86
monochromatic
#162107 #385412 #5A861D #7CB828 #9AD746

Accessibility & contrast

On white

4.32
#5A861D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#5A861D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A861D
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A861D#FFFFFF#000000##000000
##5A861D1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C03
Deuteranopia (green-blind)
#867928
Tritanopia (blue-blind)
#5C8072
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5a861d;
/* rgb */ color: rgb(90, 134, 29);
/* oklch */ color: oklch(56.7% 0.140 130.2);
Tailwind
colors: {
  custom: {
    50: '#8da962',
    500: '#5a861d',
    950: '#000000',
  },
}
SCSS
$custom: #5a861d;
$custom-light: #8da962;
$custom-dark: #000000;
JSON
{
  "hex": "#5a861d",
  "rgb": {
    "r": 90,
    "g": 134,
    "b": 29
  },
  "hsl": {
    "h": 85.143,
    "s": 64.417,
    "l": 31.961
  },
  "oklch": {
    "l": 0.56737,
    "c": 0.13951,
    "h": 130.2
  },
  "luminance": 0.19313
}

Semantic roles & 50–950 ramp

primary
#5A861D
secondary
#7646B9
accent
#40E786
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D1005
muted
#7D7F7A

Preview Lab

Preview with #5A861D

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

Preview Lab → · Contrast checker → · Palette generator →

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