#8F178C#8F178C

#8F178C is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.3% C 0.195 H 329.3°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#8F178C
RGBrgb(143, 23, 140)
HSLhsl(302, 72%, 33%)
HSVhsv(302, 84%, 56%)
CMYKcmyk(0%, 83.9%, 2.1%, 43.9%)
CIE-LABlab(34.70, 59.66, -35.96)
CIE-LCHlch(34.70, 69.66, 328.92°)
OKLaboklab(46.32% 0.1681 -0.0996)
OKLCHoklch(46.32% 0.195 329.3)
XYZxyz(16.3676, 8.3472, 25.5550)
Luminance0.0835 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F178C #178F1A
analogous
#56178F #8F178C #8F1750
triadic
#8F178C #8C8F17 #178C8F
tetradic
#8F178C #8F5617 #178F1A #17508F
square
#8F178C #8F5617 #178F1A #17508F
split-complementary
#8F178C #508F17 #178F56
monochromatic
#260625 #5A0F58 #8F178C #C41FC0 #E040DC

Accessibility & contrast

On white

7.87
#8F178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#8F178C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F178C
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F178C#FFFFFF#000000##FFFFFF
##8F178C1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488F
Deuteranopia (green-blind)
#3E5789
Tritanopia (blue-blind)
#942C53
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8f178c;
/* rgb */ color: rgb(143, 23, 140);
/* oklch */ color: oklch(46.3% 0.195 329.3);
Tailwind
colors: {
  custom: {
    50: '#b466ae',
    500: '#8f178c',
    950: '#000000',
  },
}
SCSS
$custom: #8f178c;
$custom-light: #b466ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8f178c",
  "rgb": {
    "r": 143,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 301.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.46315,
    "c": 0.19542,
    "h": 329.3
  },
  "luminance": 0.08346
}

Semantic roles & 50–950 ramp

primary
#8F178C
secondary
#41C144
accent
#EF3D39
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #8F178C

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

Preview Lab → · Contrast checker → · Palette generator →

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