#8E172B#8E172B

#8E172B is a dark, vivid red. Relative luminance 0.065; OKLCH L 42.2% C 0.152 H 18.6°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#8E172B
RGBrgb(142, 23, 43)
HSLhsl(350, 72%, 32%)
HSVhsv(350, 84%, 56%)
CMYKcmyk(0%, 83.8%, 69.7%, 44.3%)
CIE-LABlab(30.74, 48.68, 20.71)
CIE-LCHlch(30.74, 52.90, 23.04°)
OKLaboklab(42.19% 0.1442 0.0486)
OKLCHoklch(42.19% 0.152 18.6)
XYZxyz(11.8991, 6.5399, 2.9208)
Luminance0.0654 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E172B #178E7A
analogous
#8E1767 #8E172B #8E3F17
triadic
#8E172B #2B8E17 #172B8E
tetradic
#8E172B #678E17 #178E7A #3F178E
square
#8E172B #678E17 #178E7A #3F178E
split-complementary
#8E172B #178E3F #17678E
monochromatic
#25060B #590E1B #8E172B #C3203B #E03F5A

Accessibility & contrast

On white

9.10
#8E172B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#8E172B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E172B
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E172B#FFFFFF#000000##FFFFFF
##8E172B1.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C382B
Deuteranopia (green-blind)
#5A5127
Tritanopia (blue-blind)
#9C0020
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #8e172b;
/* rgb */ color: rgb(142, 23, 43);
/* oklch */ color: oklch(42.2% 0.152 18.6);
Tailwind
colors: {
  custom: {
    50: '#b76264',
    500: '#8e172b',
    950: '#000000',
  },
}
SCSS
$custom: #8e172b;
$custom-light: #b76264;
$custom-dark: #000000;
JSON
{
  "hex": "#8e172b",
  "rgb": {
    "r": 142,
    "g": 23,
    "b": 43
  },
  "hsl": {
    "h": 349.916,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.42193,
    "c": 0.15218,
    "h": 18.6
  },
  "luminance": 0.06538
}

Semantic roles & 50–950 ramp

primary
#8E172B
secondary
#40C0AB
accent
#EFD039
background
#FCF6F5
surface
#F8EBEA
border
#D1C6C6
text
#130605
muted
#827A79

Preview Lab

Preview with #8E172B

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

Preview Lab → · Contrast checker → · Palette generator →

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