#8E173A#8E173A

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

Color values

HEX#8E173A
RGBrgb(142, 23, 58)
HSLhsl(342, 72%, 32%)
HSVhsv(342, 84%, 56%)
CMYKcmyk(0%, 83.8%, 59.2%, 44.3%)
CIE-LABlab(31.05, 49.62, 11.23)
CIE-LCHlch(31.05, 50.87, 12.75°)
OKLaboklab(42.52% 0.1504 0.0281)
OKLCHoklch(42.52% 0.153 10.6)
XYZxyz(12.2267, 6.6709, 4.6460)
Luminance0.0667 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E173A #178E6B
analogous
#8E1775 #8E173A #8E3017
triadic
#8E173A #3A8E17 #173A8E
tetradic
#8E173A #758E17 #178E6B #30178E
square
#8E173A #758E17 #178E6B #30178E
split-complementary
#8E173A #178E30 #17758E
monochromatic
#25060F #590E24 #8E173A #C32050 #E03F6F

Accessibility & contrast

On white

9.00
#8E173A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#8E173A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E173A
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E173A#FFFFFF#000000##FFFFFF
##8E173A1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8e173a;
/* rgb */ color: rgb(142, 23, 58);
/* oklch */ color: oklch(42.5% 0.153 10.6);
Tailwind
colors: {
  custom: {
    50: '#b6636f',
    500: '#8e173a',
    950: '#000000',
  },
}
SCSS
$custom: #8e173a;
$custom-light: #b6636f;
$custom-dark: #000000;
JSON
{
  "hex": "#8e173a",
  "rgb": {
    "r": 142,
    "g": 23,
    "b": 58
  },
  "hsl": {
    "h": 342.353,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.42522,
    "c": 0.15296,
    "h": 10.6
  },
  "luminance": 0.06669
}

Semantic roles & 50–950 ramp

primary
#8E173A
secondary
#40C09B
accent
#EFB939
background
#FBF6F6
surface
#F7EBEC
border
#D0C6C7
text
#120607
muted
#817A7A

Preview Lab

Preview with #8E173A

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

Preview Lab → · Contrast checker → · Palette generator →

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