#8E171F#8E171F

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

Color values

HEX#8E171F
RGBrgb(142, 23, 31)
HSLhsl(356, 72%, 32%)
HSVhsv(356, 84%, 56%)
CMYKcmyk(0%, 83.8%, 78.2%, 44.3%)
CIE-LABlab(30.56, 48.13, 28.15)
CIE-LCHlch(30.56, 55.76, 30.32°)
OKLaboklab(42% 0.1396 0.0624)
OKLCHoklch(42% 0.153 24.1)
XYZxyz(11.7105, 6.4644, 1.9272)
Luminance0.0646 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E171F #178E86
analogous
#8E175B #8E171F #8E4A17
triadic
#8E171F #1F8E17 #171F8E
tetradic
#8E171F #5B8E17 #178E86 #4A178E
square
#8E171F #5B8E17 #178E86 #4A178E
split-complementary
#8E171F #178E4A #175B8E
monochromatic
#250608 #590E14 #8E171F #C3202A #E03F4A

Accessibility & contrast

On white

9.16
#8E171F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E171F
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E171F#FFFFFF#000000##FFFFFF
##8E171F1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D381E
Deuteranopia (green-blind)
#5B511A
Tritanopia (blue-blind)
#9D001C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #8e171f;
/* rgb */ color: rgb(142, 23, 31);
/* oklch */ color: oklch(42.0% 0.153 24.1);
Tailwind
colors: {
  custom: {
    50: '#b8625b',
    500: '#8e171f',
    950: '#000000',
  },
}
SCSS
$custom: #8e171f;
$custom-light: #b8625b;
$custom-dark: #000000;
JSON
{
  "hex": "#8e171f",
  "rgb": {
    "r": 142,
    "g": 23,
    "b": 31
  },
  "hsl": {
    "h": 355.966,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.42002,
    "c": 0.15293,
    "h": 24.1
  },
  "luminance": 0.06463
}

Semantic roles & 50–950 ramp

primary
#8E171F
secondary
#40C0B8
accent
#EFE339
background
#FCF6F5
surface
#F8EBE9
border
#D1C6C5
text
#130604
muted
#827A79

Preview Lab

Preview with #8E171F

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

Preview Lab → · Contrast checker → · Palette generator →

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