#5B861B#5B861B

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

Color values

HEX#5B861B
RGBrgb(91, 134, 27)
HSLhsl(84, 66%, 32%)
HSVhsv(84, 80%, 53%)
CMYKcmyk(32.1%, 0%, 79.9%, 47.5%)
CIE-LABlab(51.10, -31.35, 48.73)
CIE-LCHlch(51.10, 57.95, 122.76°)
OKLaboklab(56.79% -0.0895 0.1077)
OKLCHoklch(56.79% 0.14 129.7)
XYZxyz(13.0373, 19.3531, 4.0853)
Luminance0.1935 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B861B #461B86
analogous
#867C1B #5B861B #26861B
triadic
#5B861B #1B5B86 #861B5B
tetradic
#5B861B #1B867C #461B86 #861B26
square
#5B861B #1B867C #461B86 #861B26
split-complementary
#5B861B #1B2686 #7C1B86
monochromatic
#162006 #385311 #5B861B #7EB925 #9CD942

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B861B#FFFFFF#000000##000000
##5B861B1.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: #5b861b;
/* rgb */ color: rgb(91, 134, 27);
/* oklch */ color: oklch(56.8% 0.140 129.7);
Tailwind
colors: {
  custom: {
    50: '#8da961',
    500: '#5b861b',
    950: '#000000',
  },
}
SCSS
$custom: #5b861b;
$custom-light: #8da961;
$custom-dark: #000000;
JSON
{
  "hex": "#5b861b",
  "rgb": {
    "r": 91,
    "g": 134,
    "b": 27
  },
  "hsl": {
    "h": 84.112,
    "s": 66.46,
    "l": 31.569
  },
  "oklch": {
    "l": 0.56787,
    "c": 0.14007,
    "h": 129.7
  },
  "luminance": 0.19353
}

Semantic roles & 50–950 ramp

primary
#5B861B
secondary
#7344B9
accent
#3EE983
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #5B861B

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

Preview Lab → · Contrast checker → · Palette generator →

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