#8D178C#8D178C

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

Color values

HEX#8D178C
RGBrgb(141, 23, 140)
HSLhsl(301, 72%, 32%)
HSVhsv(301, 84%, 55%)
CMYKcmyk(0%, 83.7%, 0.7%, 44.7%)
CIE-LABlab(34.33, 59.26, -36.56)
CIE-LCHlch(34.33, 69.63, 328.33°)
OKLaboklab(45.99% 0.166 -0.1014)
OKLCHoklch(45.99% 0.195 328.6)
XYZxyz(16.0244, 8.1702, 25.5389)
Luminance0.0817 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D178C #178D18
analogous
#53178D #8D178C #8D1751
triadic
#8D178C #8C8D17 #178C8D
tetradic
#8D178C #8D5317 #178D18 #17518D
square
#8D178C #8D5317 #178D18 #17518D
split-complementary
#8D178C #518D17 #178D53
monochromatic
#240624 #580E58 #8D178C #C220C0 #E03FDE

Accessibility & contrast

On white

7.97
#8D178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8D178C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D178C
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D178C#FFFFFF#000000##FFFFFF
##8D178C1.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478F
Deuteranopia (green-blind)
#3C5689
Tritanopia (blue-blind)
#922D53
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8d178c;
/* rgb */ color: rgb(141, 23, 140);
/* oklch */ color: oklch(46.0% 0.195 328.6);
Tailwind
colors: {
  custom: {
    50: '#b266ae',
    500: '#8d178c',
    950: '#000000',
  },
}
SCSS
$custom: #8d178c;
$custom-light: #b266ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8d178c",
  "rgb": {
    "r": 141,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 300.508,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.45991,
    "c": 0.19452,
    "h": 328.6
  },
  "luminance": 0.08169
}

Semantic roles & 50–950 ramp

primary
#8D178C
secondary
#40C041
accent
#EF3B39
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8D178C

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

Preview Lab → · Contrast checker → · Palette generator →

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