#8C173B#8C173B

#8C173B is a dark, vivid pink. Relative luminance 0.065; OKLCH L 42.2% C 0.151 H 9.6°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#8C173B
RGBrgb(140, 23, 59)
HSLhsl(342, 72%, 32%)
HSVhsv(342, 84%, 55%)
CMYKcmyk(0%, 83.6%, 57.9%, 45.1%)
CIE-LABlab(30.65, 49.12, 9.96)
CIE-LCHlch(30.65, 50.12, 11.46°)
OKLaboklab(42.17% 0.1492 0.0251)
OKLCHoklch(42.17% 0.151 9.6)
XYZxyz(11.9122, 6.5058, 4.7653)
Luminance0.0650 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C173B #178C68
analogous
#8C1776 #8C173B #8C2D17
triadic
#8C173B #3B8C17 #173B8C
tetradic
#8C173B #768C17 #178C68 #2D178C
square
#8C173B #768C17 #178C68 #2D178C
split-complementary
#8C173B #178C2D #17768C
monochromatic
#23060F #570E25 #8C173B #C12051 #DF3E70

Accessibility & contrast

On white

9.13
#8C173B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#8C173B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C173B
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C173B#FFFFFF#000000##FFFFFF
##8C173B1.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38393C
Deuteranopia (green-blind)
#565138
Tritanopia (blue-blind)
#990027
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #8c173b;
/* rgb */ color: rgb(140, 23, 59);
/* oklch */ color: oklch(42.2% 0.151 9.6);
Tailwind
colors: {
  custom: {
    50: '#b46270',
    500: '#8c173b',
    950: '#000000',
  },
}
SCSS
$custom: #8c173b;
$custom-light: #b46270;
$custom-dark: #000000;
JSON
{
  "hex": "#8c173b",
  "rgb": {
    "r": 140,
    "g": 23,
    "b": 59
  },
  "hsl": {
    "h": 341.538,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.42168,
    "c": 0.15129,
    "h": 9.6
  },
  "luminance": 0.06504
}

Semantic roles & 50–950 ramp

primary
#8C173B
secondary
#3FBF98
accent
#EFB739
background
#FBF6F6
surface
#F7EBEC
border
#D0C6C7
text
#120607
muted
#817A7A

Preview Lab

Preview with #8C173B

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

Preview Lab → · Contrast checker → · Palette generator →

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