#8C171D#8C171D

#8C171D is a dark, vivid red. Relative luminance 0.063; OKLCH L 41.6% C 0.151 H 24.8°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#8C171D
RGBrgb(140, 23, 29)
HSLhsl(357, 72%, 32%)
HSVhsv(357, 84%, 55%)
CMYKcmyk(0%, 83.6%, 79.3%, 45.1%)
CIE-LABlab(30.11, 47.45, 28.76)
CIE-LCHlch(30.11, 55.49, 31.22°)
OKLaboklab(41.59% 0.1373 0.0634)
OKLCHoklch(41.59% 0.151 24.8)
XYZxyz(11.3448, 6.2788, 1.7767)
Luminance0.0628 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C171D #178C86
analogous
#8C1758 #8C171D #8C4C17
triadic
#8C171D #1D8C17 #171D8C
tetradic
#8C171D #588C17 #178C86 #4C178C
square
#8C171D #588C17 #178C86 #4C178C
split-complementary
#8C171D #178C4C #17588C
monochromatic
#230607 #570E12 #8C171D #C12028 #DF3E46

Accessibility & contrast

On white

9.31
#8C171D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#8C171D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C171D
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C171D#FFFFFF#000000##FFFFFF
##8C171D1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D371C
Deuteranopia (green-blind)
#595018
Tritanopia (blue-blind)
#9B001B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #8c171d;
/* rgb */ color: rgb(140, 23, 29);
/* oklch */ color: oklch(41.6% 0.151 24.8);
Tailwind
colors: {
  custom: {
    50: '#b66159',
    500: '#8c171d',
    950: '#000000',
  },
}
SCSS
$custom: #8c171d;
$custom-light: #b66159;
$custom-dark: #000000;
JSON
{
  "hex": "#8c171d",
  "rgb": {
    "r": 140,
    "g": 23,
    "b": 29
  },
  "hsl": {
    "h": 356.923,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.41586,
    "c": 0.15118,
    "h": 24.8
  },
  "luminance": 0.06277
}

Semantic roles & 50–950 ramp

primary
#8C171D
secondary
#3FBFB9
accent
#EFE539
background
#FCF6F5
surface
#F8EBE9
border
#D1C6C5
text
#130603
muted
#827A78

Preview Lab

Preview with #8C171D

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

Preview Lab → · Contrast checker → · Palette generator →

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