#8D178D#8D178D

#8D178D is a mid, vivid purple. Relative luminance 0.082; OKLCH L 46.1% C 0.195 H 328.2°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#8D178D
RGBrgb(141, 23, 141)
HSLhsl(300, 72%, 32%)
HSVhsv(300, 84%, 55%)
CMYKcmyk(0%, 83.7%, 0%, 44.7%)
CIE-LABlab(34.40, 59.42, -37.08)
CIE-LCHlch(34.40, 70.04, 328.04°)
OKLaboklab(46.05% 0.1659 -0.1029)
OKLCHoklch(46.05% 0.195 328.2)
XYZxyz(16.0984, 8.1998, 25.9290)
Luminance0.0820 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D178D #178D17
analogous
#52178D #8D178D #8D1752
triadic
#8D178D #8D8D17 #178D8D
tetradic
#8D178D #8D5217 #178D17 #17528D
square
#8D178D #8D5217 #178D17 #17528D
split-complementary
#8D178D #528D17 #178D52
monochromatic
#240624 #580E58 #8D178D #C220C2 #E03FE0

Accessibility & contrast

On white

7.96
#8D178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#8D178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D178D
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D178D#FFFFFF#000000##FFFFFF
##8D178D1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#3C568A
Tritanopia (blue-blind)
#922D54
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8d178d;
/* rgb */ color: rgb(141, 23, 141);
/* oklch */ color: oklch(46.1% 0.195 328.2);
Tailwind
colors: {
  custom: {
    50: '#b266af',
    500: '#8d178d',
    950: '#000000',
  },
}
SCSS
$custom: #8d178d;
$custom-light: #b266af;
$custom-dark: #000000;
JSON
{
  "hex": "#8d178d",
  "rgb": {
    "r": 141,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 300,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.46054,
    "c": 0.19527,
    "h": 328.2
  },
  "luminance": 0.08199
}

Semantic roles & 50–950 ramp

primary
#8D178D
secondary
#40C040
accent
#EF3939
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8D178D

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

Preview Lab → · Contrast checker → · Palette generator →

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