#8D177F#8D177F

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

Color values

HEX#8D177F
RGBrgb(141, 23, 127)
HSLhsl(307, 72%, 32%)
HSVhsv(307, 84%, 55%)
CMYKcmyk(0%, 83.7%, 9.9%, 44.7%)
CIE-LABlab(33.58, 57.21, -29.67)
CIE-LCHlch(33.58, 64.45, 332.59°)
OKLaboklab(45.21% 0.1662 -0.0815)
OKLCHoklch(45.21% 0.185 333.9)
XYZxyz(15.1218, 7.8092, 20.7855)
Luminance0.0781 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D177F #178D25
analogous
#60178D #8D177F #8D1744
triadic
#8D177F #7F8D17 #177F8D
tetradic
#8D177F #8D6017 #178D25 #17448D
square
#8D177F #8D6017 #178D25 #17448D
split-complementary
#8D177F #448D17 #178D60
monochromatic
#240620 #580E50 #8D177F #C220AE #E03FCD

Accessibility & contrast

On white

8.20
#8D177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8D177F
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D177F#FFFFFF#000000##FFFFFF
##8D177F1.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124482
Deuteranopia (green-blind)
#43557C
Tritanopia (blue-blind)
#94254C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8d177f;
/* rgb */ color: rgb(141, 23, 127);
/* oklch */ color: oklch(45.2% 0.185 333.9);
Tailwind
colors: {
  custom: {
    50: '#b265a4',
    500: '#8d177f',
    950: '#000000',
  },
}
SCSS
$custom: #8d177f;
$custom-light: #b265a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8d177f",
  "rgb": {
    "r": 141,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 307.119,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.45214,
    "c": 0.18505,
    "h": 333.9
  },
  "luminance": 0.07808
}

Semantic roles & 50–950 ramp

primary
#8D177F
secondary
#40C04F
accent
#EF4F39
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8D177F

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

Preview Lab → · Contrast checker → · Palette generator →

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