#8C171C#8C171C

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

Color values

HEX#8C171C
RGBrgb(140, 23, 28)
HSLhsl(357, 72%, 32%)
HSVhsv(357, 84%, 55%)
CMYKcmyk(0%, 83.6%, 80%, 45.1%)
CIE-LABlab(30.09, 47.42, 29.36)
CIE-LCHlch(30.09, 55.77, 31.77°)
OKLaboklab(41.57% 0.1369 0.0643)
OKLCHoklch(41.57% 0.151 25.2)
XYZxyz(11.3326, 6.2739, 1.7127)
Luminance0.0627 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C171C #178C87
analogous
#8C1757 #8C171C #8C4D17
triadic
#8C171C #1C8C17 #171C8C
tetradic
#8C171C #578C17 #178C87 #4D178C
square
#8C171C #578C17 #178C87 #4D178C
split-complementary
#8C171C #178C4D #17578C
monochromatic
#230607 #570E11 #8C171C #C12027 #DF3E45

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8C171C#FFFFFF#000000##FFFFFF
##8C171C1.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)
#3D371B
Deuteranopia (green-blind)
#595017
Tritanopia (blue-blind)
#9B001B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #8c171c;
/* rgb */ color: rgb(140, 23, 28);
/* oklch */ color: oklch(41.6% 0.151 25.2);
Tailwind
colors: {
  custom: {
    50: '#b66158',
    500: '#8c171c',
    950: '#000000',
  },
}
SCSS
$custom: #8c171c;
$custom-light: #b66158;
$custom-dark: #000000;
JSON
{
  "hex": "#8c171c",
  "rgb": {
    "r": 140,
    "g": 23,
    "b": 28
  },
  "hsl": {
    "h": 357.436,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.41573,
    "c": 0.15128,
    "h": 25.2
  },
  "luminance": 0.06272
}

Semantic roles & 50–950 ramp

primary
#8C171C
secondary
#3FBFBA
accent
#EFE739
background
#FCF6F5
surface
#F8EBE9
border
#D1C6C5
text
#130603
muted
#827A78

Preview Lab

Preview with #8C171C

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

Preview Lab → · Contrast checker → · Palette generator →

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