#8C173A#8C173A

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

Color values

HEX#8C173A
RGBrgb(140, 23, 58)
HSLhsl(342, 72%, 32%)
HSVhsv(342, 84%, 55%)
CMYKcmyk(0%, 83.6%, 58.6%, 45.1%)
CIE-LABlab(30.63, 49.05, 10.59)
CIE-LCHlch(30.63, 50.18, 12.18°)
OKLaboklab(42.14% 0.1488 0.0266)
OKLCHoklch(42.14% 0.151 10.1)
XYZxyz(11.8865, 6.4955, 4.6300)
Luminance0.0649 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C173A #178C69
analogous
#8C1775 #8C173A #8C2E17
triadic
#8C173A #3A8C17 #173A8C
tetradic
#8C173A #758C17 #178C69 #2E178C
square
#8C173A #758C17 #178C69 #2E178C
split-complementary
#8C173A #178C2E #17758C
monochromatic
#23060E #570E24 #8C173A #C12050 #DF3E6E

Accessibility & contrast

On white

9.14
#8C173A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8C173A
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C173A#FFFFFF#000000##FFFFFF
##8C173A1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39393B
Deuteranopia (green-blind)
#565037
Tritanopia (blue-blind)
#9A0027
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #8c173a;
/* rgb */ color: rgb(140, 23, 58);
/* oklch */ color: oklch(42.1% 0.151 10.1);
Tailwind
colors: {
  custom: {
    50: '#b4626f',
    500: '#8c173a',
    950: '#000000',
  },
}
SCSS
$custom: #8c173a;
$custom-light: #b4626f;
$custom-dark: #000000;
JSON
{
  "hex": "#8c173a",
  "rgb": {
    "r": 140,
    "g": 23,
    "b": 58
  },
  "hsl": {
    "h": 342.051,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.42142,
    "c": 0.15113,
    "h": 10.1
  },
  "luminance": 0.06494
}

Semantic roles & 50–950 ramp

primary
#8C173A
secondary
#3FBF99
accent
#EFB839
background
#FBF6F6
surface
#F7EBEC
border
#D0C6C7
text
#120607
muted
#817A7A

Preview Lab

Preview with #8C173A

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

Preview Lab → · Contrast checker → · Palette generator →

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