#5B841C#5B841C

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

Color values

HEX#5B841C
RGBrgb(91, 132, 28)
HSLhsl(84, 65%, 31%)
HSVhsv(84, 79%, 52%)
CMYKcmyk(31.1%, 0%, 78.8%, 48.2%)
CIE-LABlab(50.46, -30.36, 47.80)
CIE-LCHlch(50.46, 56.63, 122.42°)
OKLaboklab(56.27% -0.0867 0.106)
OKLCHoklch(56.27% 0.137 129.3)
XYZxyz(12.7752, 18.8101, 4.0560)
Luminance0.1881 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B841C #451C84
analogous
#84791C #5B841C #27841C
triadic
#5B841C #1C5B84 #841C5B
tetradic
#5B841C #1C8479 #451C84 #841C27
square
#5B841C #1C8479 #451C84 #841C27
split-complementary
#5B841C #1C2784 #791C84
monochromatic
#151F07 #385211 #5B841C #7EB627 #9DD743

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B841C#FFFFFF#000000##000000
##5B841C1.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)
#8B7A02
Deuteranopia (green-blind)
#857727
Tritanopia (blue-blind)
#5E7E70
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5b841c;
/* rgb */ color: rgb(91, 132, 28);
/* oklch */ color: oklch(56.3% 0.137 129.3);
Tailwind
colors: {
  custom: {
    50: '#8da861',
    500: '#5b841c',
    950: '#000000',
  },
}
SCSS
$custom: #5b841c;
$custom-light: #8da861;
$custom-dark: #000000;
JSON
{
  "hex": "#5b841c",
  "rgb": {
    "r": 91,
    "g": 132,
    "b": 28
  },
  "hsl": {
    "h": 83.654,
    "s": 65,
    "l": 31.373
  },
  "oklch": {
    "l": 0.56273,
    "c": 0.13693,
    "h": 129.3
  },
  "luminance": 0.18811
}

Semantic roles & 50–950 ramp

primary
#5B841C
secondary
#7245B7
accent
#40E882
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D0F05
muted
#7D7F7A

Preview Lab

Preview with #5B841C

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

Preview Lab → · Contrast checker → · Palette generator →

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