#5B851A#5B851A

#5B851A is a mid, vivid yellow-green. Relative luminance 0.191; OKLCH L 56.5% C 0.139 H 129.4°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#5B851A
RGBrgb(91, 133, 26)
HSLhsl(84, 67%, 31%)
HSVhsv(84, 80%, 52%)
CMYKcmyk(31.6%, 0%, 80.5%, 47.8%)
CIE-LABlab(50.77, -30.94, 48.75)
CIE-LCHlch(50.77, 57.74, 122.40°)
OKLaboklab(56.52% -0.0885 0.1076)
OKLCHoklch(56.52% 0.139 129.4)
XYZxyz(12.8883, 19.0734, 3.9796)
Luminance0.1907 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B851A #441A85
analogous
#85791A #5B851A #25851A
triadic
#5B851A #1A5B85 #851A5B
tetradic
#5B851A #1A8579 #441A85 #851A25
square
#5B851A #1A8579 #441A85 #851A25
split-complementary
#5B851A #1A2585 #791A85
monochromatic
#151F06 #385210 #5B851A #7EB824 #9DDA40

Accessibility & contrast

On white

4.36
#5B851A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#5B851A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B851A
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B851A#FFFFFF#000000##000000
##5B851A1.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#867825
Tritanopia (blue-blind)
#5E7F71
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5b851a;
/* rgb */ color: rgb(91, 133, 26);
/* oklch */ color: oklch(56.5% 0.139 129.4);
Tailwind
colors: {
  custom: {
    50: '#8da860',
    500: '#5b851a',
    950: '#000000',
  },
}
SCSS
$custom: #5b851a;
$custom-light: #8da860;
$custom-dark: #000000;
JSON
{
  "hex": "#5b851a",
  "rgb": {
    "r": 91,
    "g": 133,
    "b": 26
  },
  "hsl": {
    "h": 83.551,
    "s": 67.296,
    "l": 31.176
  },
  "oklch": {
    "l": 0.56521,
    "c": 0.13932,
    "h": 129.4
  },
  "luminance": 0.19074
}

Semantic roles & 50–950 ramp

primary
#5B851A
secondary
#7142B8
accent
#3EEA81
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D0F05
muted
#7E7F7A

Preview Lab

Preview with #5B851A

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

Preview Lab → · Contrast checker → · Palette generator →

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