#50171C#50171C

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

Color values

HEX#50171C
RGBrgb(80, 23, 28)
HSLhsl(355, 55%, 20%)
HSVhsv(355, 71%, 31%)
CMYKcmyk(0%, 71.2%, 65%, 68.6%)
CIE-LABlab(17.47, 27.06, 11.30)
CIE-LCHlch(17.47, 29.32, 22.66°)
OKLaboklab(29.9% 0.0807 0.0276)
OKLCHoklch(29.9% 0.085 18.9)
XYZxyz(3.8246, 2.4026, 1.3607)
Luminance0.0240 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50171C #17504B
analogous
#501738 #50171C #502E17
triadic
#50171C #1C5017 #171C50
tetradic
#50171C #385017 #17504B #2E1750
square
#50171C #385017 #17504B #2E1750
split-complementary
#50171C #17502E #173850
monochromatic
#180708 #20090B #50171C #80252D #AF323D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##50171C#FFFFFF#000000##FFFFFF
##50171C1.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)
#25231C
Deuteranopia (green-blind)
#342F1B
Tritanopia (blue-blind)
#580B19
Achromatopsia (no color)
#2B2B2B

Design tokens & code

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

Semantic roles & 50–950 ramp

primary
#50171C
secondary
#3C8781
accent
#DFD249
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #50171C

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

Preview Lab → · Contrast checker → · Palette generator →

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