#8F178B#8F178B

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

Color values

HEX#8F178B
RGBrgb(143, 23, 139)
HSLhsl(302, 72%, 33%)
HSVhsv(302, 84%, 56%)
CMYKcmyk(0%, 83.9%, 2.8%, 43.9%)
CIE-LABlab(34.64, 59.50, -35.44)
CIE-LCHlch(34.64, 69.25, 329.22°)
OKLaboklab(46.25% 0.1682 -0.0981)
OKLCHoklch(46.25% 0.195 329.7)
XYZxyz(16.2942, 8.3178, 25.1684)
Luminance0.0832 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F178B #178F1B
analogous
#57178F #8F178B #8F174F
triadic
#8F178B #8B8F17 #178B8F
tetradic
#8F178B #8F5717 #178F1B #174F8F
square
#8F178B #8F5717 #178F1B #174F8F
split-complementary
#8F178B #4F8F17 #178F57
monochromatic
#260625 #5A0F58 #8F178B #C41FBE #E040DB

Accessibility & contrast

On white

7.88
#8F178B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#8F178B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F178B
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F178B#FFFFFF#000000##FFFFFF
##8F178B1.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#3F5788
Tritanopia (blue-blind)
#942B53
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8f178b;
/* rgb */ color: rgb(143, 23, 139);
/* oklch */ color: oklch(46.3% 0.195 329.7);
Tailwind
colors: {
  custom: {
    50: '#b466ad',
    500: '#8f178b',
    950: '#000000',
  },
}
SCSS
$custom: #8f178b;
$custom-light: #b466ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8f178b",
  "rgb": {
    "r": 143,
    "g": 23,
    "b": 139
  },
  "hsl": {
    "h": 302,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.46254,
    "c": 0.19469,
    "h": 329.7
  },
  "luminance": 0.08317
}

Semantic roles & 50–950 ramp

primary
#8F178B
secondary
#41C145
accent
#EF3F39
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #8F178B

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

Preview Lab → · Contrast checker → · Palette generator →

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