#8E172D#8E172D

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

Color values

HEX#8E172D
RGBrgb(142, 23, 45)
HSLhsl(349, 72%, 32%)
HSVhsv(349, 84%, 56%)
CMYKcmyk(0%, 83.8%, 68.3%, 44.3%)
CIE-LABlab(30.77, 48.79, 19.45)
CIE-LCHlch(30.77, 52.52, 21.73°)
OKLaboklab(42.23% 0.145 0.046)
OKLCHoklch(42.23% 0.152 17.6)
XYZxyz(11.9367, 6.5549, 3.1188)
Luminance0.0655 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E172D #178E78
analogous
#8E1768 #8E172D #8E3D17
triadic
#8E172D #2D8E17 #172D8E
tetradic
#8E172D #688E17 #178E78 #3D178E
square
#8E172D #688E17 #178E78 #3D178E
split-complementary
#8E172D #178E3D #17688E
monochromatic
#25060C #590E1C #8E172D #C3203E #E03F5D

Accessibility & contrast

On white

9.09
#8E172D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E172D
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E172D#FFFFFF#000000##FFFFFF
##8E172D1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C392D
Deuteranopia (green-blind)
#595129
Tritanopia (blue-blind)
#9C0021
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #8e172d;
/* rgb */ color: rgb(142, 23, 45);
/* oklch */ color: oklch(42.2% 0.152 17.6);
Tailwind
colors: {
  custom: {
    50: '#b76265',
    500: '#8e172d',
    950: '#000000',
  },
}
SCSS
$custom: #8e172d;
$custom-light: #b76265;
$custom-dark: #000000;
JSON
{
  "hex": "#8e172d",
  "rgb": {
    "r": 142,
    "g": 23,
    "b": 45
  },
  "hsl": {
    "h": 348.908,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.42231,
    "c": 0.15215,
    "h": 17.6
  },
  "luminance": 0.06553
}

Semantic roles & 50–950 ramp

primary
#8E172D
secondary
#40C0A9
accent
#EFCD39
background
#FCF6F6
surface
#F8EBEB
border
#D1C6C6
text
#130605
muted
#827A7A

Preview Lab

Preview with #8E172D

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

Preview Lab → · Contrast checker → · Palette generator →

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