#8D1787#8D1787

#8D1787 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.7% C 0.191 H 330.6°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#8D1787
RGBrgb(141, 23, 135)
HSLhsl(303, 72%, 32%)
HSVhsv(303, 84%, 55%)
CMYKcmyk(0%, 83.7%, 4.3%, 44.7%)
CIE-LABlab(34.04, 58.45, -33.94)
CIE-LCHlch(34.04, 67.59, 329.86°)
OKLaboklab(45.68% 0.1662 -0.0938)
OKLCHoklch(45.68% 0.191 330.6)
XYZxyz(15.6640, 8.0261, 23.6412)
Luminance0.0803 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1787 #178D1D
analogous
#58178D #8D1787 #8D174C
triadic
#8D1787 #878D17 #17878D
tetradic
#8D1787 #8D5817 #178D1D #174C8D
square
#8D1787 #8D5817 #178D1D #174C8D
split-complementary
#8D1787 #4C8D17 #178D58
monochromatic
#240622 #580E55 #8D1787 #C220B9 #E03FD7

Accessibility & contrast

On white

8.06
#8D1787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#8D1787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D1787
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1787#FFFFFF#000000##FFFFFF
##8D17871.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468A
Deuteranopia (green-blind)
#3F5584
Tritanopia (blue-blind)
#932A50
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8d1787;
/* rgb */ color: rgb(141, 23, 135);
/* oklch */ color: oklch(45.7% 0.191 330.6);
Tailwind
colors: {
  custom: {
    50: '#b266aa',
    500: '#8d1787',
    950: '#000000',
  },
}
SCSS
$custom: #8d1787;
$custom-light: #b266aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1787",
  "rgb": {
    "r": 141,
    "g": 23,
    "b": 135
  },
  "hsl": {
    "h": 303.051,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.45684,
    "c": 0.19083,
    "h": 330.6
  },
  "luminance": 0.08025
}

Semantic roles & 50–950 ramp

primary
#8D1787
secondary
#40C046
accent
#EF4239
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8D1787

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

Preview Lab → · Contrast checker → · Palette generator →

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