#5B871C#5B871C

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

Color values

HEX#5B871C
RGBrgb(91, 135, 28)
HSLhsl(85, 66%, 32%)
HSVhsv(85, 79%, 53%)
CMYKcmyk(32.6%, 0%, 79.3%, 47.1%)
CIE-LABlab(51.42, -31.76, 48.70)
CIE-LCHlch(51.42, 58.15, 123.11°)
OKLaboklab(57.05% -0.0905 0.1079)
OKLCHoklch(57.05% 0.141 130)
XYZxyz(13.1879, 19.6355, 4.1936)
Luminance0.1964 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B871C #481C87
analogous
#877E1C #5B871C #26871C
triadic
#5B871C #1C5B87 #871C5B
tetradic
#5B871C #1C877E #481C87 #871C26
square
#5B871C #1C877E #481C87 #871C26
split-complementary
#5B871C #1C2687 #7E1C87
monochromatic
#172207 #395411 #5B871C #7DBA27 #9CD845

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B871C#FFFFFF#000000##000000
##5B871C1.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)
#8E7D01
Deuteranopia (green-blind)
#887927
Tritanopia (blue-blind)
#5D8173
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5b871c;
/* rgb */ color: rgb(91, 135, 28);
/* oklch */ color: oklch(57.1% 0.141 130.0);
Tailwind
colors: {
  custom: {
    50: '#8eaa62',
    500: '#5b871c',
    950: '#000000',
  },
}
SCSS
$custom: #5b871c;
$custom-light: #8eaa62;
$custom-dark: #000000;
JSON
{
  "hex": "#5b871c",
  "rgb": {
    "r": 91,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 84.673,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.57053,
    "c": 0.14082,
    "h": 130
  },
  "luminance": 0.19636
}

Semantic roles & 50–950 ramp

primary
#5B871C
secondary
#7545BA
accent
#3FE985
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #5B871C

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

Preview Lab → · Contrast checker → · Palette generator →

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