#5B841D#5B841D

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

Color values

HEX#5B841D
RGBrgb(91, 132, 29)
HSLhsl(84, 64%, 32%)
HSVhsv(84, 78%, 52%)
CMYKcmyk(31.1%, 0%, 78%, 48.2%)
CIE-LABlab(50.47, -30.31, 47.46)
CIE-LCHlch(50.47, 56.31, 122.56°)
OKLaboklab(56.28% -0.0865 0.1054)
OKLCHoklch(56.28% 0.136 129.4)
XYZxyz(12.7874, 18.8150, 4.1201)
Luminance0.1882 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B841D #461D84
analogous
#847A1D #5B841D #28841D
triadic
#5B841D #1D5B84 #841D5B
tetradic
#5B841D #1D847A #461D84 #841D28
square
#5B841D #1D847A #461D84 #841D28
split-complementary
#5B841D #1D2884 #7A1D84
monochromatic
#162007 #385212 #5B841D #7EB628 #9CD645

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B841D#FFFFFF#000000##000000
##5B841D1.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)
#8B7A05
Deuteranopia (green-blind)
#857727
Tritanopia (blue-blind)
#5E7E71
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5b841d;
/* rgb */ color: rgb(91, 132, 29);
/* oklch */ color: oklch(56.3% 0.136 129.4);
Tailwind
colors: {
  custom: {
    50: '#8da862',
    500: '#5b841d',
    950: '#000000',
  },
}
SCSS
$custom: #5b841d;
$custom-light: #8da862;
$custom-dark: #000000;
JSON
{
  "hex": "#5b841d",
  "rgb": {
    "r": 91,
    "g": 132,
    "b": 29
  },
  "hsl": {
    "h": 83.883,
    "s": 63.975,
    "l": 31.569
  },
  "oklch": {
    "l": 0.5628,
    "c": 0.13636,
    "h": 129.4
  },
  "luminance": 0.18815
}

Semantic roles & 50–950 ramp

primary
#5B841D
secondary
#7346B7
accent
#41E783
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D0F05
muted
#7D7F7A

Preview Lab

Preview with #5B841D

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

Preview Lab → · Contrast checker → · Palette generator →

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