#8E173C#8E173C

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

Color values

HEX#8E173C
RGBrgb(142, 23, 60)
HSLhsl(341, 72%, 32%)
HSVhsv(341, 84%, 56%)
CMYKcmyk(0%, 83.8%, 57.7%, 44.3%)
CIE-LABlab(31.09, 49.77, 9.97)
CIE-LCHlch(31.09, 50.75, 11.32°)
OKLaboklab(42.57% 0.1512 0.0251)
OKLCHoklch(42.57% 0.153 9.4)
XYZxyz(12.2786, 6.6916, 4.9192)
Luminance0.0669 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E173C #178E69
analogous
#8E1777 #8E173C #8E2E17
triadic
#8E173C #3C8E17 #173C8E
tetradic
#8E173C #778E17 #178E69 #2E178E
square
#8E173C #778E17 #178E69 #2E178E
split-complementary
#8E173C #178E2E #17778E
monochromatic
#25060F #590E26 #8E173C #C32052 #E03F71

Accessibility & contrast

On white

8.98
#8E173C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E173C
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E173C#FFFFFF#000000##FFFFFF
##8E173C1.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#393A3D
Deuteranopia (green-blind)
#575239
Tritanopia (blue-blind)
#9C0028
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #8e173c;
/* rgb */ color: rgb(142, 23, 60);
/* oklch */ color: oklch(42.6% 0.153 9.4);
Tailwind
colors: {
  custom: {
    50: '#b56371',
    500: '#8e173c',
    950: '#000000',
  },
}
SCSS
$custom: #8e173c;
$custom-light: #b56371;
$custom-dark: #000000;
JSON
{
  "hex": "#8e173c",
  "rgb": {
    "r": 142,
    "g": 23,
    "b": 60
  },
  "hsl": {
    "h": 341.345,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.42574,
    "c": 0.15324,
    "h": 9.4
  },
  "luminance": 0.0669
}

Semantic roles & 50–950 ramp

primary
#8E173C
secondary
#40C099
accent
#EFB639
background
#FBF6F6
surface
#F7EBEC
border
#D0C6C7
text
#120607
muted
#817A7A

Preview Lab

Preview with #8E173C

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

Preview Lab → · Contrast checker → · Palette generator →

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