#5B861A#5B861A

#5B861A is a mid, vivid yellow-green. Relative luminance 0.193; OKLCH L 56.8% C 0.141 H 129.7°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#5B861A
RGBrgb(91, 134, 26)
HSLhsl(84, 68%, 31%)
HSVhsv(84, 81%, 53%)
CMYKcmyk(32.1%, 0%, 80.6%, 47.5%)
CIE-LABlab(51.09, -31.41, 49.05)
CIE-LCHlch(51.09, 58.24, 122.63°)
OKLaboklab(56.78% -0.0897 0.1083)
OKLCHoklch(56.78% 0.141 129.7)
XYZxyz(13.0259, 19.3485, 4.0254)
Luminance0.1935 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B861A #451A86
analogous
#867B1A #5B861A #25861A
triadic
#5B861A #1A5B86 #861A5B
tetradic
#5B861A #1A867B #451A86 #861A25
square
#5B861A #1A867B #451A86 #861A25
split-complementary
#5B861A #1A2586 #7B1A86
monochromatic
#151F06 #385310 #5B861A #7EB924 #9DDA40

Accessibility & contrast

On white

4.31
#5B861A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#5B861A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B861A
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B861A#FFFFFF#000000##000000
##5B861A1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C00
Deuteranopia (green-blind)
#877926
Tritanopia (blue-blind)
#5E8072
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5b861a;
/* rgb */ color: rgb(91, 134, 26);
/* oklch */ color: oklch(56.8% 0.141 129.7);
Tailwind
colors: {
  custom: {
    50: '#8ea961',
    500: '#5b861a',
    950: '#000000',
  },
}
SCSS
$custom: #5b861a;
$custom-light: #8ea961;
$custom-dark: #000000;
JSON
{
  "hex": "#5b861a",
  "rgb": {
    "r": 91,
    "g": 134,
    "b": 26
  },
  "hsl": {
    "h": 83.889,
    "s": 67.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.56781,
    "c": 0.1406,
    "h": 129.7
  },
  "luminance": 0.19349
}

Semantic roles & 50–950 ramp

primary
#5B861A
secondary
#7242B9
accent
#3DEA82
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #5B861A

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

Preview Lab → · Contrast checker → · Palette generator →

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