#8E171A#8E171A

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

Color values

HEX#8E171A
RGBrgb(142, 23, 26)
HSLhsl(358, 72%, 32%)
HSVhsv(358, 84%, 56%)
CMYKcmyk(0%, 83.8%, 81.7%, 44.3%)
CIE-LABlab(30.50, 47.95, 31.11)
CIE-LCHlch(30.50, 57.16, 32.98°)
OKLaboklab(41.94% 0.1379 0.0673)
OKLCHoklch(41.94% 0.153 26)
XYZxyz(11.6496, 6.4401, 1.6068)
Luminance0.0644 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E171A #178E8B
analogous
#8E1756 #8E171A #8E4F17
triadic
#8E171A #1A8E17 #171A8E
tetradic
#8E171A #568E17 #178E8B #4F178E
square
#8E171A #568E17 #178E8B #4F178E
split-complementary
#8E171A #178E4F #17568E
monochromatic
#250607 #590E10 #8E171A #C32024 #E03F43

Accessibility & contrast

On white

9.18
#8E171A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E171A
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E171A#FFFFFF#000000##FFFFFF
##8E171A1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E3718
Deuteranopia (green-blind)
#5B5114
Tritanopia (blue-blind)
#9D001A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #8e171a;
/* rgb */ color: rgb(142, 23, 26);
/* oklch */ color: oklch(41.9% 0.153 26.0);
Tailwind
colors: {
  custom: {
    50: '#b86257',
    500: '#8e171a',
    950: '#000000',
  },
}
SCSS
$custom: #8e171a;
$custom-light: #b86257;
$custom-dark: #000000;
JSON
{
  "hex": "#8e171a",
  "rgb": {
    "r": 142,
    "g": 23,
    "b": 26
  },
  "hsl": {
    "h": 358.487,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.4194,
    "c": 0.15346,
    "h": 26
  },
  "luminance": 0.06438
}

Semantic roles & 50–950 ramp

primary
#8E171A
secondary
#40C0BD
accent
#EFEA39
background
#FCF6F5
surface
#F8EBE9
border
#D1C6C5
text
#130603
muted
#827A78

Preview Lab

Preview with #8E171A

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

Preview Lab → · Contrast checker → · Palette generator →

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