#8E171C#8E171C

#8E171C is a dark, vivid red. Relative luminance 0.064; OKLCH L 42.0% C 0.153 H 25.3°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#8E171C
RGBrgb(142, 23, 28)
HSLhsl(357, 72%, 32%)
HSVhsv(357, 84%, 56%)
CMYKcmyk(0%, 83.8%, 80.3%, 44.3%)
CIE-LABlab(30.52, 48.02, 29.94)
CIE-LCHlch(30.52, 56.59, 31.94°)
OKLaboklab(41.96% 0.1386 0.0654)
OKLCHoklch(41.96% 0.153 25.3)
XYZxyz(11.6728, 6.4493, 1.7286)
Luminance0.0645 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E171C #178E89
analogous
#8E1758 #8E171C #8E4E17
triadic
#8E171C #1C8E17 #171C8E
tetradic
#8E171C #588E17 #178E89 #4E178E
square
#8E171C #588E17 #178E89 #4E178E
split-complementary
#8E171C #178E4E #17588E
monochromatic
#250607 #590E12 #8E171C #C32026 #E03F46

Accessibility & contrast

On white

9.17
#8E171C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#8E171C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E171C
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E171C#FFFFFF#000000##FFFFFF
##8E171C1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E371B
Deuteranopia (green-blind)
#5B5117
Tritanopia (blue-blind)
#9D001B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #8e171c;
/* rgb */ color: rgb(142, 23, 28);
/* oklch */ color: oklch(42.0% 0.153 25.3);
Tailwind
colors: {
  custom: {
    50: '#b86258',
    500: '#8e171c',
    950: '#000000',
  },
}
SCSS
$custom: #8e171c;
$custom-light: #b86258;
$custom-dark: #000000;
JSON
{
  "hex": "#8e171c",
  "rgb": {
    "r": 142,
    "g": 23,
    "b": 28
  },
  "hsl": {
    "h": 357.479,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.41963,
    "c": 0.15324,
    "h": 25.3
  },
  "luminance": 0.06447
}

Semantic roles & 50–950 ramp

primary
#8E171C
secondary
#40C0BB
accent
#EFE739
background
#FCF6F5
surface
#F8EBE9
border
#D1C6C5
text
#130603
muted
#827A78

Preview Lab

Preview with #8E171C

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

Preview Lab → · Contrast checker → · Palette generator →

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