#50871B#50871B

#50871B is a mid, vivid yellow-green. Relative luminance 0.191; OKLCH L 56.4% C 0.147 H 133.4°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#50871B
RGBrgb(80, 135, 27)
HSLhsl(91, 67%, 32%)
HSVhsv(91, 80%, 53%)
CMYKcmyk(40.7%, 0%, 80%, 47.1%)
CIE-LABlab(50.82, -36.00, 48.25)
CIE-LCHlch(50.82, 60.20, 126.72°)
OKLaboklab(56.4% -0.1013 0.107)
OKLCHoklch(56.4% 0.147 133.4)
XYZxyz(12.1699, 19.1120, 4.0844)
Luminance0.1911 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50871B #521B87
analogous
#86871B #50871B #1B871C
triadic
#50871B #1B5087 #871B50
tetradic
#50871B #1B8687 #521B87 #871C1B
square
#50871B #1B8687 #521B87 #871C1B
split-complementary
#50871B #1C1B87 #871B86
monochromatic
#142107 #325411 #50871B #6EBA25 #8DD943

Accessibility & contrast

On white

4.35
#50871B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#50871B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #50871B
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50871B#FFFFFF#000000##000000
##50871B1.004.354.824.82
#FFFFFF4.351.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C00
Deuteranopia (green-blind)
#857727
Tritanopia (blue-blind)
#508173
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #50871b;
/* rgb */ color: rgb(80, 135, 27);
/* oklch */ color: oklch(56.4% 0.147 133.4);
Tailwind
colors: {
  custom: {
    50: '#86aa61',
    500: '#50871b',
    950: '#000000',
  },
}
SCSS
$custom: #50871b;
$custom-light: #86aa61;
$custom-dark: #000000;
JSON
{
  "hex": "#50871b",
  "rgb": {
    "r": 80,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 90.556,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.56397,
    "c": 0.14736,
    "h": 133.4
  },
  "luminance": 0.19113
}

Semantic roles & 50–950 ramp

primary
#50871B
secondary
#8044BA
accent
#3EEA95
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #50871B

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

Preview Lab → · Contrast checker → · Palette generator →

#50871B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva