#8D171B#8D171B

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

Color values

HEX#8D171B
RGBrgb(141, 23, 27)
HSLhsl(358, 72%, 32%)
HSVhsv(358, 84%, 55%)
CMYKcmyk(0%, 83.7%, 80.9%, 44.7%)
CIE-LABlab(30.29, 47.68, 30.24)
CIE-LCHlch(30.29, 56.46, 32.38°)
OKLaboklab(41.76% 0.1374 0.0659)
OKLCHoklch(41.76% 0.152 25.6)
XYZxyz(11.4901, 6.3565, 1.6586)
Luminance0.0635 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D171B #178D89
analogous
#8D1756 #8D171B #8D4E17
triadic
#8D171B #1B8D17 #171B8D
tetradic
#8D171B #568D17 #178D89 #4E178D
square
#8D171B #568D17 #178D89 #4E178D
split-complementary
#8D171B #178D4E #17568D
monochromatic
#240607 #580E11 #8D171B #C22025 #E03F44

Accessibility & contrast

On white

9.25
#8D171B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8D171B
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D171B#FFFFFF#000000##FFFFFF
##8D171B1.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D371A
Deuteranopia (green-blind)
#5A5016
Tritanopia (blue-blind)
#9C001A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #8d171b;
/* rgb */ color: rgb(141, 23, 27);
/* oklch */ color: oklch(41.8% 0.152 25.6);
Tailwind
colors: {
  custom: {
    50: '#b76258',
    500: '#8d171b',
    950: '#000000',
  },
}
SCSS
$custom: #8d171b;
$custom-light: #b76258;
$custom-dark: #000000;
JSON
{
  "hex": "#8d171b",
  "rgb": {
    "r": 141,
    "g": 23,
    "b": 27
  },
  "hsl": {
    "h": 357.966,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.41756,
    "c": 0.15237,
    "h": 25.6
  },
  "luminance": 0.06355
}

Semantic roles & 50–950 ramp

primary
#8D171B
secondary
#40C0BC
accent
#EFE939
background
#FCF6F5
surface
#F8EBE9
border
#D1C6C5
text
#130603
muted
#827A78

Preview Lab

Preview with #8D171B

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

Preview Lab → · Contrast checker → · Palette generator →

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