#8D171F#8D171F

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

Color values

HEX#8D171F
RGBrgb(141, 23, 31)
HSLhsl(356, 72%, 32%)
HSVhsv(356, 84%, 55%)
CMYKcmyk(0%, 83.7%, 78%, 44.7%)
CIE-LABlab(30.34, 47.83, 27.85)
CIE-LCHlch(30.34, 55.35, 30.21°)
OKLaboklab(41.81% 0.1388 0.0619)
OKLCHoklch(41.81% 0.152 24)
XYZxyz(11.5396, 6.3763, 1.9192)
Luminance0.0637 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D171F #178D85
analogous
#8D175A #8D171F #8D4A17
triadic
#8D171F #1F8D17 #171F8D
tetradic
#8D171F #5A8D17 #178D85 #4A178D
square
#8D171F #5A8D17 #178D85 #4A178D
split-complementary
#8D171F #178D4A #175A8D
monochromatic
#240608 #580E13 #8D171F #C2202B #E03F4A

Accessibility & contrast

On white

9.23
#8D171F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8D171F
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D171F#FFFFFF#000000##FFFFFF
##8D171F1.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D371E
Deuteranopia (green-blind)
#5A501A
Tritanopia (blue-blind)
#9C001C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #8d171f;
/* rgb */ color: rgb(141, 23, 31);
/* oklch */ color: oklch(41.8% 0.152 24.0);
Tailwind
colors: {
  custom: {
    50: '#b7625b',
    500: '#8d171f',
    950: '#000000',
  },
}
SCSS
$custom: #8d171f;
$custom-light: #b7625b;
$custom-dark: #000000;
JSON
{
  "hex": "#8d171f",
  "rgb": {
    "r": 141,
    "g": 23,
    "b": 31
  },
  "hsl": {
    "h": 355.932,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.41807,
    "c": 0.15196,
    "h": 24
  },
  "luminance": 0.06374
}

Semantic roles & 50–950 ramp

primary
#8D171F
secondary
#40C0B7
accent
#EFE239
background
#FCF6F5
surface
#F8EBE9
border
#D1C6C5
text
#130604
muted
#827A79

Preview Lab

Preview with #8D171F

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

Preview Lab → · Contrast checker → · Palette generator →

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