#8D178F#8D178F

#8D178F is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.2% C 0.197 H 327.4°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#8D178F
RGBrgb(141, 23, 143)
HSLhsl(299, 72%, 33%)
HSVhsv(299, 84%, 56%)
CMYKcmyk(1.4%, 83.9%, 0%, 43.9%)
CIE-LABlab(34.52, 59.75, -38.11)
CIE-LCHlch(34.52, 70.87, 327.47°)
OKLaboklab(46.18% 0.1658 -0.1059)
OKLCHoklch(46.18% 0.197 327.4)
XYZxyz(16.2486, 8.2599, 26.7198)
Luminance0.0826 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D178F #198F17
analogous
#51178F #8D178F #8F1755
triadic
#8D178F #8F8D17 #178F8D
tetradic
#8D178F #8F5117 #198F17 #17558F
square
#8D178F #8F5117 #198F17 #17558F
split-complementary
#8D178F #558F17 #178F51
monochromatic
#250626 #590F5A #8D178F #C11FC4 #DE40E0

Accessibility & contrast

On white

7.92
#8D178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#8D178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D178F
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D178F#FFFFFF#000000##FFFFFF
##8D178F1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#3A568C
Tritanopia (blue-blind)
#912E55
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8d178f;
/* rgb */ color: rgb(141, 23, 143);
/* oklch */ color: oklch(46.2% 0.197 327.4);
Tailwind
colors: {
  custom: {
    50: '#b266b0',
    500: '#8d178f',
    950: '#000000',
  },
}
SCSS
$custom: #8d178f;
$custom-light: #b266b0;
$custom-dark: #000000;
JSON
{
  "hex": "#8d178f",
  "rgb": {
    "r": 141,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 299,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.4618,
    "c": 0.19677,
    "h": 327.4
  },
  "luminance": 0.08259
}

Semantic roles & 50–950 ramp

primary
#8D178F
secondary
#43C141
accent
#EF393C
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8D178F

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

Preview Lab → · Contrast checker → · Palette generator →

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