#8D172B#8D172B

#8D172B is a dark, vivid red. Relative luminance 0.065; OKLCH L 42.0% C 0.151 H 18.5°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#8D172B
RGBrgb(141, 23, 43)
HSLhsl(350, 72%, 32%)
HSVhsv(350, 84%, 55%)
CMYKcmyk(0%, 83.7%, 69.5%, 44.7%)
CIE-LABlab(30.52, 48.39, 20.40)
CIE-LCHlch(30.52, 52.51, 22.86°)
OKLaboklab(42% 0.1434 0.0479)
OKLCHoklch(42% 0.151 18.5)
XYZxyz(11.7283, 6.4518, 2.9128)
Luminance0.0645 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D172B #178D79
analogous
#8D1766 #8D172B #8D3E17
triadic
#8D172B #2B8D17 #172B8D
tetradic
#8D172B #668D17 #178D79 #3E178D
square
#8D172B #668D17 #178D79 #3E178D
split-complementary
#8D172B #178D3E #17668D
monochromatic
#24060B #580E1B #8D172B #C2203B #E03F5A

Accessibility & contrast

On white

9.17
#8D172B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#8D172B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D172B
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D172B#FFFFFF#000000##FFFFFF
##8D172B1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C382B
Deuteranopia (green-blind)
#595127
Tritanopia (blue-blind)
#9B0020
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #8d172b;
/* rgb */ color: rgb(141, 23, 43);
/* oklch */ color: oklch(42.0% 0.151 18.5);
Tailwind
colors: {
  custom: {
    50: '#b66264',
    500: '#8d172b',
    950: '#000000',
  },
}
SCSS
$custom: #8d172b;
$custom-light: #b66264;
$custom-dark: #000000;
JSON
{
  "hex": "#8d172b",
  "rgb": {
    "r": 141,
    "g": 23,
    "b": 43
  },
  "hsl": {
    "h": 349.831,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.42,
    "c": 0.15121,
    "h": 18.5
  },
  "luminance": 0.0645
}

Semantic roles & 50–950 ramp

primary
#8D172B
secondary
#40C0AA
accent
#EFD039
background
#FCF6F5
surface
#F8EBEA
border
#D1C6C6
text
#130605
muted
#827A79

Preview Lab

Preview with #8D172B

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

Preview Lab → · Contrast checker → · Palette generator →

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