#8D177E#8D177E

#8D177E is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.2% C 0.184 H 334.3°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#8D177E
RGBrgb(141, 23, 126)
HSLhsl(308, 72%, 32%)
HSVhsv(308, 84%, 55%)
CMYKcmyk(0%, 83.7%, 10.6%, 44.7%)
CIE-LABlab(33.53, 57.06, -29.13)
CIE-LCHlch(33.53, 64.07, 332.95°)
OKLaboklab(45.16% 0.1661 -0.0799)
OKLCHoklch(45.16% 0.184 334.3)
XYZxyz(15.0570, 7.7832, 20.4439)
Luminance0.0778 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D177E #178D26
analogous
#61178D #8D177E #8D1743
triadic
#8D177E #7E8D17 #177E8D
tetradic
#8D177E #8D6117 #178D26 #17438D
square
#8D177E #8D6117 #178D26 #17438D
split-complementary
#8D177E #438D17 #178D61
monochromatic
#240620 #580E4F #8D177E #C220AD #E03FCB

Accessibility & contrast

On white

8.21
#8D177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#8D177E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D177E
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D177E#FFFFFF#000000##FFFFFF
##8D177E1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144481
Deuteranopia (green-blind)
#44557B
Tritanopia (blue-blind)
#94244B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8d177e;
/* rgb */ color: rgb(141, 23, 126);
/* oklch */ color: oklch(45.2% 0.184 334.3);
Tailwind
colors: {
  custom: {
    50: '#b265a4',
    500: '#8d177e',
    950: '#000000',
  },
}
SCSS
$custom: #8d177e;
$custom-light: #b265a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8d177e",
  "rgb": {
    "r": 141,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 307.627,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.45157,
    "c": 0.18435,
    "h": 334.3
  },
  "luminance": 0.07782
}

Semantic roles & 50–950 ramp

primary
#8D177E
secondary
#40C050
accent
#EF5039
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8D177E

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

Preview Lab → · Contrast checker → · Palette generator →

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