#5B841F#5B841F

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

Color values

HEX#5B841F
RGBrgb(91, 132, 31)
HSLhsl(84, 62%, 32%)
HSVhsv(84, 77%, 52%)
CMYKcmyk(31.1%, 0%, 76.5%, 48.2%)
CIE-LABlab(50.48, -30.19, 46.76)
CIE-LCHlch(50.48, 55.65, 122.85°)
OKLaboklab(56.29% -0.086 0.1043)
OKLCHoklch(56.29% 0.135 129.5)
XYZxyz(12.8129, 18.8252, 4.2546)
Luminance0.1883 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B841F #481F84
analogous
#847A1F #5B841F #29841F
triadic
#5B841F #1F5B84 #841F5B
tetradic
#5B841F #1F847A #481F84 #841F29
square
#5B841F #1F847A #481F84 #841F29
split-complementary
#5B841F #1F2984 #7A1F84
monochromatic
#172108 #395213 #5B841F #7DB62B #9CD449

Accessibility & contrast

On white

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

On black

4.77
#5B841F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B841F
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B841F#FFFFFF#000000##000000
##5B841F1.004.414.774.77
#FFFFFF4.411.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A0A
Deuteranopia (green-blind)
#857729
Tritanopia (blue-blind)
#5E7E71
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5b841f;
/* rgb */ color: rgb(91, 132, 31);
/* oklch */ color: oklch(56.3% 0.135 129.5);
Tailwind
colors: {
  custom: {
    50: '#8da863',
    500: '#5b841f',
    950: '#000000',
  },
}
SCSS
$custom: #5b841f;
$custom-light: #8da863;
$custom-dark: #000000;
JSON
{
  "hex": "#5b841f",
  "rgb": {
    "r": 91,
    "g": 132,
    "b": 31
  },
  "hsl": {
    "h": 84.356,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.56293,
    "c": 0.13518,
    "h": 129.5
  },
  "luminance": 0.18826
}

Semantic roles & 50–950 ramp

primary
#5B841F
secondary
#7548B7
accent
#43E585
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D0F06
muted
#7D7F7A

Preview Lab

Preview with #5B841F

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

Preview Lab → · Contrast checker → · Palette generator →

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