#5B871F#5B871F

#5B871F is a mid, vivid yellow-green. Relative luminance 0.197; OKLCH L 57.1% C 0.139 H 130.2°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#5B871F
RGBrgb(91, 135, 31)
HSLhsl(85, 63%, 33%)
HSVhsv(85, 77%, 53%)
CMYKcmyk(32.6%, 0%, 77%, 47.1%)
CIE-LABlab(51.44, -31.59, 47.68)
CIE-LCHlch(51.44, 57.20, 123.53°)
OKLaboklab(57.07% -0.0899 0.1062)
OKLCHoklch(57.07% 0.139 130.2)
XYZxyz(13.2256, 19.6506, 4.3922)
Luminance0.1965 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B871F #4B1F87
analogous
#877F1F #5B871F #27871F
triadic
#5B871F #1F5B87 #871F5B
tetradic
#5B871F #1F877F #4B1F87 #871F27
square
#5B871F #1F877F #4B1F87 #871F27
split-complementary
#5B871F #1F2787 #7F1F87
monochromatic
#182308 #395514 #5B871F #7DB92A #9BD64B

Accessibility & contrast

On white

4.26
#5B871F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#5B871F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B871F
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B871F#FFFFFF#000000##000000
##5B871F1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D08
Deuteranopia (green-blind)
#877929
Tritanopia (blue-blind)
#5D8173
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5b871f;
/* rgb */ color: rgb(91, 135, 31);
/* oklch */ color: oklch(57.1% 0.139 130.2);
Tailwind
colors: {
  custom: {
    50: '#8daa63',
    500: '#5b871f',
    950: '#000000',
  },
}
SCSS
$custom: #5b871f;
$custom-light: #8daa63;
$custom-dark: #000000;
JSON
{
  "hex": "#5b871f",
  "rgb": {
    "r": 91,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 85.385,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.57073,
    "c": 0.13912,
    "h": 130.2
  },
  "luminance": 0.19651
}

Semantic roles & 50–950 ramp

primary
#5B871F
secondary
#784AB8
accent
#42E687
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D1006
muted
#7D7F7A

Preview Lab

Preview with #5B871F

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

Preview Lab → · Contrast checker → · Palette generator →

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