#8E173F#8E173F

#8E173F is a dark, vivid pink. Relative luminance 0.067; OKLCH L 42.7% C 0.154 H 7.7°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#8E173F
RGBrgb(142, 23, 63)
HSLhsl(340, 72%, 32%)
HSVhsv(340, 84%, 56%)
CMYKcmyk(0%, 83.8%, 55.6%, 44.3%)
CIE-LABlab(31.17, 49.99, 8.08)
CIE-LCHlch(31.17, 50.64, 9.18°)
OKLaboklab(42.66% 0.1524 0.0207)
OKLCHoklch(42.66% 0.154 7.7)
XYZxyz(12.3601, 6.7243, 5.3487)
Luminance0.0672 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E173F #178E66
analogous
#8E177A #8E173F #8E2B17
triadic
#8E173F #3F8E17 #173F8E
tetradic
#8E173F #7A8E17 #178E66 #2B178E
square
#8E173F #7A8E17 #178E66 #2B178E
split-complementary
#8E173F #178E2B #177A8E
monochromatic
#250610 #590E28 #8E173F #C32056 #E03F75

Accessibility & contrast

On white

8.96
#8E173F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E173F
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E173F#FFFFFF#000000##FFFFFF
##8E173F1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#383A40
Deuteranopia (green-blind)
#57523C
Tritanopia (blue-blind)
#9B0029
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #8e173f;
/* rgb */ color: rgb(142, 23, 63);
/* oklch */ color: oklch(42.7% 0.154 7.7);
Tailwind
colors: {
  custom: {
    50: '#b56373',
    500: '#8e173f',
    950: '#000000',
  },
}
SCSS
$custom: #8e173f;
$custom-light: #b56373;
$custom-dark: #000000;
JSON
{
  "hex": "#8e173f",
  "rgb": {
    "r": 142,
    "g": 23,
    "b": 63
  },
  "hsl": {
    "h": 339.832,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.42655,
    "c": 0.15376,
    "h": 7.7
  },
  "luminance": 0.06722
}

Semantic roles & 50–950 ramp

primary
#8E173F
secondary
#40C095
accent
#EFB239
background
#FBF6F6
surface
#F7EBEC
border
#D0C6C7
text
#120608
muted
#817A7B

Preview Lab

Preview with #8E173F

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

Preview Lab → · Contrast checker → · Palette generator →

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