#8D178B#8D178B

#8D178B is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.9% C 0.194 H 329.0°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#8D178B
RGBrgb(141, 23, 139)
HSLhsl(301, 72%, 32%)
HSVhsv(301, 84%, 55%)
CMYKcmyk(0%, 83.7%, 1.4%, 44.7%)
CIE-LABlab(34.27, 59.09, -36.04)
CIE-LCHlch(34.27, 69.22, 328.63°)
OKLaboklab(45.93% 0.166 -0.0999)
OKLCHoklch(45.93% 0.194 329)
XYZxyz(15.9510, 8.1408, 25.1523)
Luminance0.0814 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D178B #178D19
analogous
#54178D #8D178B #8D1750
triadic
#8D178B #8B8D17 #178B8D
tetradic
#8D178B #8D5417 #178D19 #17508D
square
#8D178B #8D5417 #178D19 #17508D
split-complementary
#8D178B #508D17 #178D54
monochromatic
#240623 #580E57 #8D178B #C220BF #E03FDD

Accessibility & contrast

On white

7.99
#8D178B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8D178B
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D178B#FFFFFF#000000##FFFFFF
##8D178B1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#3D5688
Tritanopia (blue-blind)
#922C53
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8d178b;
/* rgb */ color: rgb(141, 23, 139);
/* oklch */ color: oklch(45.9% 0.194 329.0);
Tailwind
colors: {
  custom: {
    50: '#b266ad',
    500: '#8d178b',
    950: '#000000',
  },
}
SCSS
$custom: #8d178b;
$custom-light: #b266ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8d178b",
  "rgb": {
    "r": 141,
    "g": 23,
    "b": 139
  },
  "hsl": {
    "h": 301.017,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.45929,
    "c": 0.19378,
    "h": 329
  },
  "luminance": 0.0814
}

Semantic roles & 50–950 ramp

primary
#8D178B
secondary
#40C042
accent
#EF3C39
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8D178B

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

Preview Lab → · Contrast checker → · Palette generator →

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