#8C171B#8C171B

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

Color values

HEX#8C171B
RGBrgb(140, 23, 27)
HSLhsl(358, 72%, 32%)
HSVhsv(358, 84%, 55%)
CMYKcmyk(0%, 83.6%, 80.7%, 45.1%)
CIE-LABlab(30.08, 47.38, 29.95)
CIE-LCHlch(30.08, 56.05, 32.30°)
OKLaboklab(41.56% 0.1366 0.0653)
OKLCHoklch(41.56% 0.151 25.6)
XYZxyz(11.3208, 6.2692, 1.6507)
Luminance0.0627 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C171B #178C88
analogous
#8C1756 #8C171B #8C4E17
triadic
#8C171B #1B8C17 #171B8C
tetradic
#8C171B #568C17 #178C88 #4E178C
square
#8C171B #568C17 #178C88 #4E178C
split-complementary
#8C171B #178C4E #17568C
monochromatic
#230607 #570E11 #8C171B #C12025 #DF3E44

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8C171B#FFFFFF#000000##FFFFFF
##8C171B1.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)
#3D371A
Deuteranopia (green-blind)
#5A5016
Tritanopia (blue-blind)
#9B001A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #8c171b;
/* rgb */ color: rgb(140, 23, 27);
/* oklch */ color: oklch(41.6% 0.151 25.6);
Tailwind
colors: {
  custom: {
    50: '#b66158',
    500: '#8c171b',
    950: '#000000',
  },
}
SCSS
$custom: #8c171b;
$custom-light: #b66158;
$custom-dark: #000000;
JSON
{
  "hex": "#8c171b",
  "rgb": {
    "r": 140,
    "g": 23,
    "b": 27
  },
  "hsl": {
    "h": 357.949,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.41561,
    "c": 0.15139,
    "h": 25.6
  },
  "luminance": 0.06267
}

Semantic roles & 50–950 ramp

primary
#8C171B
secondary
#3FBFBB
accent
#EFE839
background
#FCF6F5
surface
#F8EBE9
border
#D1C6C5
text
#130603
muted
#827A78

Preview Lab

Preview with #8C171B

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

Preview Lab → · Contrast checker → · Palette generator →

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