#8D171C#8D171C

#8D171C is a dark, vivid red. Relative luminance 0.064; OKLCH L 41.8% C 0.152 H 25.2°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#8D171C
RGBrgb(141, 23, 28)
HSLhsl(357, 72%, 32%)
HSVhsv(357, 84%, 55%)
CMYKcmyk(0%, 83.7%, 80.1%, 44.7%)
CIE-LABlab(30.31, 47.72, 29.65)
CIE-LCHlch(30.31, 56.18, 31.85°)
OKLaboklab(41.77% 0.1378 0.0649)
OKLCHoklch(41.77% 0.152 25.2)
XYZxyz(11.5019, 6.3612, 1.7206)
Luminance0.0636 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D171C #178D88
analogous
#8D1757 #8D171C #8D4D17
triadic
#8D171C #1C8D17 #171C8D
tetradic
#8D171C #578D17 #178D88 #4D178D
square
#8D171C #578D17 #178D88 #4D178D
split-complementary
#8D171C #178D4D #17578D
monochromatic
#240607 #580E12 #8D171C #C22026 #E03F46

Accessibility & contrast

On white

9.24
#8D171C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#8D171C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D171C
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D171C#FFFFFF#000000##FFFFFF
##8D171C1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D371B
Deuteranopia (green-blind)
#5A5017
Tritanopia (blue-blind)
#9C001B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #8d171c;
/* rgb */ color: rgb(141, 23, 28);
/* oklch */ color: oklch(41.8% 0.152 25.2);
Tailwind
colors: {
  custom: {
    50: '#b76258',
    500: '#8d171c',
    950: '#000000',
  },
}
SCSS
$custom: #8d171c;
$custom-light: #b76258;
$custom-dark: #000000;
JSON
{
  "hex": "#8d171c",
  "rgb": {
    "r": 141,
    "g": 23,
    "b": 28
  },
  "hsl": {
    "h": 357.458,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.41768,
    "c": 0.15227,
    "h": 25.2
  },
  "luminance": 0.06359
}

Semantic roles & 50–950 ramp

primary
#8D171C
secondary
#40C0BA
accent
#EFE739
background
#FCF6F5
surface
#F8EBE9
border
#D1C6C5
text
#130603
muted
#827A78

Preview Lab

Preview with #8D171C

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

Preview Lab → · Contrast checker → · Palette generator →

#8D171C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva