#5B841B#5B841B

#5B841B is a mid, vivid yellow-green. Relative luminance 0.188; OKLCH L 56.3% C 0.137 H 129.2°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#5B841B
RGBrgb(91, 132, 27)
HSLhsl(83, 66%, 31%)
HSVhsv(83, 80%, 52%)
CMYKcmyk(31.1%, 0%, 79.5%, 48.2%)
CIE-LABlab(50.46, -30.42, 48.13)
CIE-LCHlch(50.46, 56.94, 122.29°)
OKLaboklab(56.27% -0.087 0.1065)
OKLCHoklch(56.27% 0.137 129.2)
XYZxyz(12.7634, 18.8054, 3.9940)
Luminance0.1881 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B841B #441B84
analogous
#84781B #5B841B #26841B
triadic
#5B841B #1B5B84 #841B5B
tetradic
#5B841B #1B8478 #441B84 #841B26
square
#5B841B #1B8478 #441B84 #841B26
split-complementary
#5B841B #1B2684 #781B84
monochromatic
#151E06 #385111 #5B841B #7EB725 #9DD841

Accessibility & contrast

On white

4.41
#5B841B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#5B841B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B841B
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B841B#FFFFFF#000000##000000
##5B841B1.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#857726
Tritanopia (blue-blind)
#5E7E70
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5b841b;
/* rgb */ color: rgb(91, 132, 27);
/* oklch */ color: oklch(56.3% 0.137 129.2);
Tailwind
colors: {
  custom: {
    50: '#8da861',
    500: '#5b841b',
    950: '#000000',
  },
}
SCSS
$custom: #5b841b;
$custom-light: #8da861;
$custom-dark: #000000;
JSON
{
  "hex": "#5b841b",
  "rgb": {
    "r": 91,
    "g": 132,
    "b": 27
  },
  "hsl": {
    "h": 83.429,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.56267,
    "c": 0.13749,
    "h": 129.2
  },
  "luminance": 0.18806
}

Semantic roles & 50–950 ramp

primary
#5B841B
secondary
#7143B7
accent
#3FE981
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D0F05
muted
#7D7F7A

Preview Lab

Preview with #5B841B

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

Preview Lab → · Contrast checker → · Palette generator →

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