#5B871A#5B871A

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

Color values

HEX#5B871A
RGBrgb(91, 135, 26)
HSLhsl(84, 68%, 32%)
HSVhsv(84, 81%, 53%)
CMYKcmyk(32.6%, 0%, 80.7%, 47.1%)
CIE-LABlab(51.41, -31.87, 49.35)
CIE-LCHlch(51.41, 58.74, 122.86°)
OKLaboklab(57.04% -0.091 0.1089)
OKLCHoklch(57.04% 0.142 129.9)
XYZxyz(13.1648, 19.6263, 4.0717)
Luminance0.1963 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B871A #461A87
analogous
#877D1A #5B871A #25871A
triadic
#5B871A #1A5B87 #871A5B
tetradic
#5B871A #1A877D #461A87 #871A25
square
#5B871A #1A877D #461A87 #871A25
split-complementary
#5B871A #1A2587 #7D1A87
monochromatic
#162006 #385410 #5B871A #7EBA24 #9CDA41

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B871A#FFFFFF#000000##000000
##5B871A1.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)
#8E7D00
Deuteranopia (green-blind)
#887926
Tritanopia (blue-blind)
#5E8173
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5b871a;
/* rgb */ color: rgb(91, 135, 26);
/* oklch */ color: oklch(57.0% 0.142 129.9);
Tailwind
colors: {
  custom: {
    50: '#8eaa61',
    500: '#5b871a',
    950: '#000000',
  },
}
SCSS
$custom: #5b871a;
$custom-light: #8eaa61;
$custom-dark: #000000;
JSON
{
  "hex": "#5b871a",
  "rgb": {
    "r": 91,
    "g": 135,
    "b": 26
  },
  "hsl": {
    "h": 84.22,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.57041,
    "c": 0.14188,
    "h": 129.9
  },
  "luminance": 0.19627
}

Semantic roles & 50–950 ramp

primary
#5B871A
secondary
#7342BA
accent
#3DEB83
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #5B871A

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

Preview Lab → · Contrast checker → · Palette generator →

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