#5A861F#5A861F

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

Color values

HEX#5A861F
RGBrgb(90, 134, 31)
HSLhsl(86, 62%, 32%)
HSVhsv(86, 77%, 53%)
CMYKcmyk(32.8%, 0%, 76.9%, 47.5%)
CIE-LABlab(51.06, -31.52, 47.30)
CIE-LCHlch(51.06, 56.84, 123.68°)
OKLaboklab(56.75% -0.0896 0.1054)
OKLCHoklch(56.75% 0.138 130.4)
XYZxyz(12.9888, 19.3224, 4.3413)
Luminance0.1932 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A861F #4B1F86
analogous
#867E1F #5A861F #27861F
triadic
#5A861F #1F5A86 #861F5A
tetradic
#5A861F #1F867E #4B1F86 #861F27
square
#5A861F #1F867E #4B1F86 #861F27
split-complementary
#5A861F #1F2786 #7E1F86
monochromatic
#172308 #395414 #5A861F #7BB82A #9AD54A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A861F#FFFFFF#000000##000000
##5A861F1.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)
#8C7C08
Deuteranopia (green-blind)
#867929
Tritanopia (blue-blind)
#5C8072
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5a861f;
/* rgb */ color: rgb(90, 134, 31);
/* oklch */ color: oklch(56.8% 0.138 130.4);
Tailwind
colors: {
  custom: {
    50: '#8da963',
    500: '#5a861f',
    950: '#000000',
  },
}
SCSS
$custom: #5a861f;
$custom-light: #8da963;
$custom-dark: #000000;
JSON
{
  "hex": "#5a861f",
  "rgb": {
    "r": 90,
    "g": 134,
    "b": 31
  },
  "hsl": {
    "h": 85.631,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.5675,
    "c": 0.13835,
    "h": 130.4
  },
  "luminance": 0.19323
}

Semantic roles & 50–950 ramp

primary
#5A861F
secondary
#7849B8
accent
#42E588
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #5A861F

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

Preview Lab → · Contrast checker → · Palette generator →

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