#8C173E#8C173E

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

Color values

HEX#8C173E
RGBrgb(140, 23, 62)
HSLhsl(340, 72%, 32%)
HSVhsv(340, 84%, 55%)
CMYKcmyk(0%, 83.6%, 55.7%, 45.1%)
CIE-LABlab(30.73, 49.35, 8.07)
CIE-LCHlch(30.73, 50.01, 9.29°)
OKLaboklab(42.25% 0.1504 0.0206)
OKLCHoklch(42.25% 0.152 7.8)
XYZxyz(11.9923, 6.5378, 5.1869)
Luminance0.0654 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C173E #178C65
analogous
#8C1779 #8C173E #8C2B17
triadic
#8C173E #3E8C17 #173E8C
tetradic
#8C173E #798C17 #178C65 #2B178C
square
#8C173E #798C17 #178C65 #2B178C
split-complementary
#8C173E #178C2B #17798C
monochromatic
#23060F #570E27 #8C173E #C12055 #DF3E74

Accessibility & contrast

On white

9.10
#8C173E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#8C173E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C173E
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C173E#FFFFFF#000000##FFFFFF
##8C173E1.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38393F
Deuteranopia (green-blind)
#56513B
Tritanopia (blue-blind)
#990029
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #8c173e;
/* rgb */ color: rgb(140, 23, 62);
/* oklch */ color: oklch(42.2% 0.152 7.8);
Tailwind
colors: {
  custom: {
    50: '#b46272',
    500: '#8c173e',
    950: '#000000',
  },
}
SCSS
$custom: #8c173e;
$custom-light: #b46272;
$custom-dark: #000000;
JSON
{
  "hex": "#8c173e",
  "rgb": {
    "r": 140,
    "g": 23,
    "b": 62
  },
  "hsl": {
    "h": 340,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.42249,
    "c": 0.1518,
    "h": 7.8
  },
  "luminance": 0.06536
}

Semantic roles & 50–950 ramp

primary
#8C173E
secondary
#3FBF95
accent
#EFB239
background
#FBF6F6
surface
#F7EBEC
border
#D0C6C7
text
#120608
muted
#817A7B

Preview Lab

Preview with #8C173E

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

Preview Lab → · Contrast checker → · Palette generator →

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