#8F178D#8F178D

#8F178D is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.4% C 0.196 H 329.0°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#8F178D
RGBrgb(143, 23, 141)
HSLhsl(301, 72%, 33%)
HSVhsv(301, 84%, 56%)
CMYKcmyk(0%, 83.9%, 1.4%, 43.9%)
CIE-LABlab(34.76, 59.82, -36.48)
CIE-LCHlch(34.76, 70.07, 328.62°)
OKLaboklab(46.38% 0.1681 -0.1011)
OKLCHoklch(46.38% 0.196 329)
XYZxyz(16.4417, 8.3768, 25.9451)
Luminance0.0838 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F178D #178F19
analogous
#55178F #8F178D #8F1751
triadic
#8F178D #8D8F17 #178D8F
tetradic
#8F178D #8F5517 #178F19 #17518F
square
#8F178D #8F5517 #178F19 #17518F
split-complementary
#8F178D #518F17 #178F55
monochromatic
#260625 #5A0F59 #8F178D #C41FC1 #E040DE

Accessibility & contrast

On white

7.85
#8F178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#8F178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F178D
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F178D#FFFFFF#000000##FFFFFF
##8F178D1.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004890
Deuteranopia (green-blind)
#3E578A
Tritanopia (blue-blind)
#942D54
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8f178d;
/* rgb */ color: rgb(143, 23, 141);
/* oklch */ color: oklch(46.4% 0.196 329.0);
Tailwind
colors: {
  custom: {
    50: '#b466af',
    500: '#8f178d',
    950: '#000000',
  },
}
SCSS
$custom: #8f178d;
$custom-light: #b466af;
$custom-dark: #000000;
JSON
{
  "hex": "#8f178d",
  "rgb": {
    "r": 143,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 301,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.46377,
    "c": 0.19616,
    "h": 329
  },
  "luminance": 0.08376
}

Semantic roles & 50–950 ramp

primary
#8F178D
secondary
#41C143
accent
#EF3C39
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #8F178D

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

Preview Lab → · Contrast checker → · Palette generator →

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