#5B871E#5B871E

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

Color values

HEX#5B871E
RGBrgb(91, 135, 30)
HSLhsl(85, 64%, 32%)
HSVhsv(85, 78%, 53%)
CMYKcmyk(32.6%, 0%, 77.8%, 47.1%)
CIE-LABlab(51.43, -31.65, 48.03)
CIE-LCHlch(51.43, 57.52, 123.38°)
OKLaboklab(57.07% -0.0901 0.1068)
OKLCHoklch(57.07% 0.14 130.2)
XYZxyz(13.2126, 19.6454, 4.3238)
Luminance0.1965 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B871E #4A1E87
analogous
#877F1E #5B871E #27871E
triadic
#5B871E #1E5B87 #871E5B
tetradic
#5B871E #1E877F #4A1E87 #871E27
square
#5B871E #1E877F #4A1E87 #871E27
split-complementary
#5B871E #1E2787 #7F1E87
monochromatic
#172308 #395513 #5B871E #7DB929 #9BD749

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B871E#FFFFFF#000000##000000
##5B871E1.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)
#8D7D05
Deuteranopia (green-blind)
#877929
Tritanopia (blue-blind)
#5D8173
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5b871e;
/* rgb */ color: rgb(91, 135, 30);
/* oklch */ color: oklch(57.1% 0.140 130.2);
Tailwind
colors: {
  custom: {
    50: '#8daa62',
    500: '#5b871e',
    950: '#000000',
  },
}
SCSS
$custom: #5b871e;
$custom-light: #8daa62;
$custom-dark: #000000;
JSON
{
  "hex": "#5b871e",
  "rgb": {
    "r": 91,
    "g": 135,
    "b": 30
  },
  "hsl": {
    "h": 85.143,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.57066,
    "c": 0.13971,
    "h": 130.2
  },
  "luminance": 0.19646
}

Semantic roles & 50–950 ramp

primary
#5B871E
secondary
#7748B9
accent
#41E787
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5B871E

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

Preview Lab → · Contrast checker → · Palette generator →

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