#5B871D#5B871D

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

Color values

HEX#5B871D
RGBrgb(91, 135, 29)
HSLhsl(85, 65%, 32%)
HSVhsv(85, 79%, 53%)
CMYKcmyk(32.6%, 0%, 78.5%, 47.1%)
CIE-LABlab(51.43, -31.71, 48.37)
CIE-LCHlch(51.43, 57.84, 123.25°)
OKLaboklab(57.06% -0.0903 0.1073)
OKLCHoklch(57.06% 0.14 130.1)
XYZxyz(13.2001, 19.6404, 4.2577)
Luminance0.1964 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B871D #491D87
analogous
#877E1D #5B871D #26871D
triadic
#5B871D #1D5B87 #871D5B
tetradic
#5B871D #1D877E #491D87 #871D26
square
#5B871D #1D877E #491D87 #871D26
split-complementary
#5B871D #1D2687 #7E1D87
monochromatic
#172207 #395512 #5B871D #7DB928 #9BD747

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B871D#FFFFFF#000000##000000
##5B871D1.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)
#8E7D03
Deuteranopia (green-blind)
#877928
Tritanopia (blue-blind)
#5D8173
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5b871d;
/* rgb */ color: rgb(91, 135, 29);
/* oklch */ color: oklch(57.1% 0.140 130.1);
Tailwind
colors: {
  custom: {
    50: '#8daa62',
    500: '#5b871d',
    950: '#000000',
  },
}
SCSS
$custom: #5b871d;
$custom-light: #8daa62;
$custom-dark: #000000;
JSON
{
  "hex": "#5b871d",
  "rgb": {
    "r": 91,
    "g": 135,
    "b": 29
  },
  "hsl": {
    "h": 84.906,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.5706,
    "c": 0.14028,
    "h": 130.1
  },
  "luminance": 0.19641
}

Semantic roles & 50–950 ramp

primary
#5B871D
secondary
#7646B9
accent
#40E886
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #5B871D

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

Preview Lab → · Contrast checker → · Palette generator →

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