#8D1786#8D1786

#8D1786 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.6% C 0.190 H 331.0°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#8D1786
RGBrgb(141, 23, 134)
HSLhsl(304, 72%, 32%)
HSVhsv(304, 84%, 55%)
CMYKcmyk(0%, 83.7%, 5%, 44.7%)
CIE-LABlab(33.98, 58.30, -33.41)
CIE-LCHlch(33.98, 67.19, 330.18°)
OKLaboklab(45.62% 0.1662 -0.0923)
OKLCHoklch(45.62% 0.19 331)
XYZxyz(15.5940, 7.9980, 23.2721)
Luminance0.0800 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1786 #178D1E
analogous
#59178D #8D1786 #8D174B
triadic
#8D1786 #868D17 #17868D
tetradic
#8D1786 #8D5917 #178D1E #174B8D
square
#8D1786 #8D5917 #178D1E #174B8D
split-complementary
#8D1786 #4B8D17 #178D59
monochromatic
#240622 #580E54 #8D1786 #C220B8 #E03FD6

Accessibility & contrast

On white

8.08
#8D1786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#8D1786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D1786
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1786#FFFFFF#000000##FFFFFF
##8D17861.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024689
Deuteranopia (green-blind)
#405583
Tritanopia (blue-blind)
#932950
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8d1786;
/* rgb */ color: rgb(141, 23, 134);
/* oklch */ color: oklch(45.6% 0.190 331.0);
Tailwind
colors: {
  custom: {
    50: '#b265aa',
    500: '#8d1786',
    950: '#000000',
  },
}
SCSS
$custom: #8d1786;
$custom-light: #b265aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1786",
  "rgb": {
    "r": 141,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 303.559,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.45624,
    "c": 0.1901,
    "h": 331
  },
  "luminance": 0.07997
}

Semantic roles & 50–950 ramp

primary
#8D1786
secondary
#40C047
accent
#EF4439
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8D1786

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

Preview Lab → · Contrast checker → · Palette generator →

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