#8E173B#8E173B

#8E173B is a dark, vivid pink. Relative luminance 0.067; OKLCH L 42.5% C 0.153 H 10.0°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#8E173B
RGBrgb(142, 23, 59)
HSLhsl(342, 72%, 32%)
HSVhsv(342, 84%, 56%)
CMYKcmyk(0%, 83.8%, 58.5%, 44.3%)
CIE-LABlab(31.07, 49.69, 10.59)
CIE-LCHlch(31.07, 50.81, 12.04°)
OKLaboklab(42.55% 0.1508 0.0266)
OKLCHoklch(42.55% 0.153 10)
XYZxyz(12.2524, 6.6812, 4.7813)
Luminance0.0668 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E173B #178E6A
analogous
#8E1776 #8E173B #8E2F17
triadic
#8E173B #3B8E17 #173B8E
tetradic
#8E173B #768E17 #178E6A #2F178E
square
#8E173B #768E17 #178E6A #2F178E
split-complementary
#8E173B #178E2F #17768E
monochromatic
#25060F #590E25 #8E173B #C32051 #E03F70

Accessibility & contrast

On white

8.99
#8E173B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#8E173B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E173B
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E173B#FFFFFF#000000##FFFFFF
##8E173B1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#393A3C
Deuteranopia (green-blind)
#585238
Tritanopia (blue-blind)
#9C0027
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #8e173b;
/* rgb */ color: rgb(142, 23, 59);
/* oklch */ color: oklch(42.5% 0.153 10.0);
Tailwind
colors: {
  custom: {
    50: '#b66370',
    500: '#8e173b',
    950: '#000000',
  },
}
SCSS
$custom: #8e173b;
$custom-light: #b66370;
$custom-dark: #000000;
JSON
{
  "hex": "#8e173b",
  "rgb": {
    "r": 142,
    "g": 23,
    "b": 59
  },
  "hsl": {
    "h": 341.849,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.42548,
    "c": 0.1531,
    "h": 10
  },
  "luminance": 0.06679
}

Semantic roles & 50–950 ramp

primary
#8E173B
secondary
#40C09A
accent
#EFB839
background
#FBF6F6
surface
#F7EBEC
border
#D0C6C7
text
#120607
muted
#817A7A

Preview Lab

Preview with #8E173B

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

Preview Lab → · Contrast checker → · Palette generator →

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