#5B861F#5B861F

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

Color values

HEX#5B861F
RGBrgb(91, 134, 31)
HSLhsl(85, 62%, 32%)
HSVhsv(85, 77%, 53%)
CMYKcmyk(32.1%, 0%, 76.9%, 47.5%)
CIE-LABlab(51.12, -31.13, 47.38)
CIE-LCHlch(51.12, 56.69, 123.31°)
OKLaboklab(56.81% -0.0886 0.1056)
OKLCHoklch(56.81% 0.138 130)
XYZxyz(13.0867, 19.3729, 4.3459)
Luminance0.1937 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B861F #4A1F86
analogous
#867E1F #5B861F #27861F
triadic
#5B861F #1F5B86 #861F5B
tetradic
#5B861F #1F867E #4A1F86 #861F27
square
#5B861F #1F867E #4A1F86 #861F27
split-complementary
#5B861F #1F2786 #7E1F86
monochromatic
#172308 #395414 #5B861F #7DB82A #9BD54A

Accessibility & contrast

On white

4.31
#5B861F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#5B861F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B861F
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B861F#FFFFFF#000000##000000
##5B861F1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C08
Deuteranopia (green-blind)
#877929
Tritanopia (blue-blind)
#5D8072
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5b861f;
/* rgb */ color: rgb(91, 134, 31);
/* oklch */ color: oklch(56.8% 0.138 130.0);
Tailwind
colors: {
  custom: {
    50: '#8da963',
    500: '#5b861f',
    950: '#000000',
  },
}
SCSS
$custom: #5b861f;
$custom-light: #8da963;
$custom-dark: #000000;
JSON
{
  "hex": "#5b861f",
  "rgb": {
    "r": 91,
    "g": 134,
    "b": 31
  },
  "hsl": {
    "h": 85.049,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.56813,
    "c": 0.1378,
    "h": 130
  },
  "luminance": 0.19373
}

Semantic roles & 50–950 ramp

primary
#5B861F
secondary
#7749B8
accent
#42E586
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D1006
muted
#7D7F7A

Preview Lab

Preview with #5B861F

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

Preview Lab → · Contrast checker → · Palette generator →

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