#8C171A#8C171A

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

Color values

HEX#8C171A
RGBrgb(140, 23, 26)
HSLhsl(358, 72%, 32%)
HSVhsv(358, 84%, 55%)
CMYKcmyk(0%, 83.6%, 81.4%, 45.1%)
CIE-LABlab(30.07, 47.35, 30.54)
CIE-LCHlch(30.07, 56.34, 32.82°)
OKLaboklab(41.55% 0.1363 0.0663)
OKLCHoklch(41.55% 0.152 25.9)
XYZxyz(11.3095, 6.2647, 1.5908)
Luminance0.0626 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C171A #178C89
analogous
#8C1754 #8C171A #8C4F17
triadic
#8C171A #1A8C17 #171A8C
tetradic
#8C171A #548C17 #178C89 #4F178C
square
#8C171A #548C17 #178C89 #4F178C
split-complementary
#8C171A #178C4F #17548C
monochromatic
#230606 #570E10 #8C171A #C12024 #DF3E42

Accessibility & contrast

On white

9.32
#8C171A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#8C171A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C171A
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C171A#FFFFFF#000000##FFFFFF
##8C171A1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D3719
Deuteranopia (green-blind)
#5A5015
Tritanopia (blue-blind)
#9B001A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #8c171a;
/* rgb */ color: rgb(140, 23, 26);
/* oklch */ color: oklch(41.5% 0.151 25.9);
Tailwind
colors: {
  custom: {
    50: '#b66157',
    500: '#8c171a',
    950: '#000000',
  },
}
SCSS
$custom: #8c171a;
$custom-light: #b66157;
$custom-dark: #000000;
JSON
{
  "hex": "#8c171a",
  "rgb": {
    "r": 140,
    "g": 23,
    "b": 26
  },
  "hsl": {
    "h": 358.462,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.41549,
    "c": 0.1515,
    "h": 25.9
  },
  "luminance": 0.06263
}

Semantic roles & 50–950 ramp

primary
#8C171A
secondary
#3FBFBC
accent
#EFEA39
background
#FCF6F5
surface
#F8EBE9
border
#D1C6C5
text
#130603
muted
#827A78

Preview Lab

Preview with #8C171A

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

Preview Lab → · Contrast checker → · Palette generator →

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