#8F177A#8F177A

#8F177A is a mid, vivid pink. Relative luminance 0.079; OKLCH L 45.3% C 0.183 H 336.8°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#8F177A
RGBrgb(143, 23, 122)
HSLhsl(311, 72%, 33%)
HSVhsv(311, 84%, 56%)
CMYKcmyk(0%, 83.9%, 14.7%, 43.9%)
CIE-LABlab(33.69, 56.91, -26.34)
CIE-LCHlch(33.69, 62.71, 335.16°)
OKLaboklab(45.27% 0.1679 -0.0718)
OKLCHoklch(45.27% 0.183 336.8)
XYZxyz(15.1473, 7.8590, 19.1278)
Luminance0.0786 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F177A #178F2C
analogous
#68178F #8F177A #8F173E
triadic
#8F177A #7A8F17 #177A8F
tetradic
#8F177A #8F6817 #178F2C #173E8F
square
#8F177A #8F6817 #178F2C #173E8F
split-complementary
#8F177A #3E8F17 #178F68
monochromatic
#260620 #5A0F4D #8F177A #C41FA7 #E040C4

Accessibility & contrast

On white

8.17
#8F177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#8F177A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F177A
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F177A#FFFFFF#000000##FFFFFF
##8F177A1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B447C
Deuteranopia (green-blind)
#475577
Tritanopia (blue-blind)
#972149
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8f177a;
/* rgb */ color: rgb(143, 23, 122);
/* oklch */ color: oklch(45.3% 0.183 336.8);
Tailwind
colors: {
  custom: {
    50: '#b465a1',
    500: '#8f177a',
    950: '#000000',
  },
}
SCSS
$custom: #8f177a;
$custom-light: #b465a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8f177a",
  "rgb": {
    "r": 143,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 310.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45271,
    "c": 0.18261,
    "h": 336.8
  },
  "luminance": 0.07858
}

Semantic roles & 50–950 ramp

primary
#8F177A
secondary
#41C157
accent
#EF5939
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#12060F
muted
#817A7E

Preview Lab

Preview with #8F177A

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

Preview Lab → · Contrast checker → · Palette generator →

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