#50171B#50171B

#50171B is a dark, moderate red. Relative luminance 0.024; OKLCH L 29.9% C 0.085 H 19.9°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#50171B
RGBrgb(80, 23, 27)
HSLhsl(356, 55%, 20%)
HSVhsv(356, 71%, 31%)
CMYKcmyk(0%, 71.2%, 66.3%, 68.6%)
CIE-LABlab(17.45, 26.98, 11.98)
CIE-LCHlch(17.45, 29.52, 23.94°)
OKLaboklab(29.88% 0.0802 0.0291)
OKLCHoklch(29.88% 0.085 19.9)
XYZxyz(3.8129, 2.3979, 1.2988)
Luminance0.0240 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50171B #17504C
analogous
#501738 #50171B #502F17
triadic
#50171B #1B5017 #171B50
tetradic
#50171B #385017 #17504C #2F1750
square
#50171B #385017 #17504C #2F1750
split-complementary
#50171B #17502F #173850
monochromatic
#180708 #20090B #50171B #80252B #AF323B

Accessibility & contrast

On white

14.19
#50171B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#50171B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50171B
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50171B#FFFFFF#000000##FFFFFF
##50171B1.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26231B
Deuteranopia (green-blind)
#342F1A
Tritanopia (blue-blind)
#580B19
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #50171b;
/* rgb */ color: rgb(80, 23, 27);
/* oklch */ color: oklch(29.9% 0.085 19.9);
Tailwind
colors: {
  custom: {
    50: '#865857',
    500: '#50171b',
    950: '#000000',
  },
}
SCSS
$custom: #50171b;
$custom-light: #865857;
$custom-dark: #000000;
JSON
{
  "hex": "#50171b",
  "rgb": {
    "r": 80,
    "g": 23,
    "b": 27
  },
  "hsl": {
    "h": 355.789,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.29881,
    "c": 0.08531,
    "h": 19.9
  },
  "luminance": 0.02397
}

Semantic roles & 50–950 ramp

primary
#50171B
secondary
#3C8782
accent
#DFD449
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #50171B

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

Preview Lab → · Contrast checker → · Palette generator →

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