#8F173B#8F173B

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

Color values

HEX#8F173B
RGBrgb(143, 23, 59)
HSLhsl(342, 72%, 33%)
HSVhsv(342, 84%, 56%)
CMYKcmyk(0%, 83.9%, 58.7%, 43.9%)
CIE-LABlab(31.28, 49.98, 10.91)
CIE-LCHlch(31.28, 51.15, 12.32°)
OKLaboklab(42.74% 0.1516 0.0274)
OKLCHoklch(42.74% 0.154 10.2)
XYZxyz(12.4248, 6.7701, 4.7893)
Luminance0.0677 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F173B #178F6B
analogous
#8F1777 #8F173B #8F2F17
triadic
#8F173B #3B8F17 #173B8F
tetradic
#8F173B #778F17 #178F6B #2F178F
square
#8F173B #778F17 #178F6B #2F178F
split-complementary
#8F173B #178F2F #17778F
monochromatic
#26060F #5A0F25 #8F173B #C41F51 #E04070

Accessibility & contrast

On white

8.92
#8F173B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#8F173B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F173B
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F173B#FFFFFF#000000##FFFFFF
##8F173B1.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A3A3C
Deuteranopia (green-blind)
#585238
Tritanopia (blue-blind)
#9D0027
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #8f173b;
/* rgb */ color: rgb(143, 23, 59);
/* oklch */ color: oklch(42.7% 0.154 10.2);
Tailwind
colors: {
  custom: {
    50: '#b66370',
    500: '#8f173b',
    950: '#000000',
  },
}
SCSS
$custom: #8f173b;
$custom-light: #b66370;
$custom-dark: #000000;
JSON
{
  "hex": "#8f173b",
  "rgb": {
    "r": 143,
    "g": 23,
    "b": 59
  },
  "hsl": {
    "h": 342,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.42737,
    "c": 0.154,
    "h": 10.2
  },
  "luminance": 0.06768
}

Semantic roles & 50–950 ramp

primary
#8F173B
secondary
#41C19A
accent
#EFB839
background
#FCF6F6
surface
#F8EBEC
border
#D1C6C7
text
#120607
muted
#817A7A

Preview Lab

Preview with #8F173B

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

Preview Lab → · Contrast checker → · Palette generator →

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