#5C841B#5C841B

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

Color values

HEX#5C841B
RGBrgb(92, 132, 27)
HSLhsl(83, 66%, 31%)
HSVhsv(83, 80%, 52%)
CMYKcmyk(30.3%, 0%, 79.5%, 48.2%)
CIE-LABlab(50.52, -30.01, 48.21)
CIE-LCHlch(50.52, 56.79, 121.91°)
OKLaboklab(56.33% -0.0859 0.1066)
OKLCHoklch(56.33% 0.137 128.9)
XYZxyz(12.8627, 18.8566, 3.9987)
Luminance0.1886 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C841B #431B84
analogous
#84771B #5C841B #27841B
triadic
#5C841B #1B5C84 #841B5C
tetradic
#5C841B #1B8477 #431B84 #841B27
square
#5C841B #1B8477 #431B84 #841B27
split-complementary
#5C841B #1B2784 #771B84
monochromatic
#151E06 #395111 #5C841B #7FB725 #9FD841

Accessibility & contrast

On white

4.40
#5C841B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C841B#FFFFFF#000000##000000
##5C841B1.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c841b;
/* rgb */ color: rgb(92, 132, 27);
/* oklch */ color: oklch(56.3% 0.137 128.9);
Tailwind
colors: {
  custom: {
    50: '#8ea861',
    500: '#5c841b',
    950: '#000000',
  },
}
SCSS
$custom: #5c841b;
$custom-light: #8ea861;
$custom-dark: #000000;
JSON
{
  "hex": "#5c841b",
  "rgb": {
    "r": 92,
    "g": 132,
    "b": 27
  },
  "hsl": {
    "h": 82.857,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.56332,
    "c": 0.13695,
    "h": 128.9
  },
  "luminance": 0.18857
}

Semantic roles & 50–950 ramp

primary
#5C841B
secondary
#7043B7
accent
#3FE980
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D0F05
muted
#7E7F7A

Preview Lab

Preview with #5C841B

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

Preview Lab → · Contrast checker → · Palette generator →

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