#8D1782#8D1782

#8D1782 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.4% C 0.187 H 332.6°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#8D1782
RGBrgb(141, 23, 130)
HSLhsl(306, 72%, 32%)
HSVhsv(306, 84%, 55%)
CMYKcmyk(0%, 83.7%, 7.8%, 44.7%)
CIE-LABlab(33.75, 57.67, -31.28)
CIE-LCHlch(33.75, 65.61, 331.52°)
OKLaboklab(45.39% 0.1662 -0.0861)
OKLCHoklch(45.39% 0.187 332.6)
XYZxyz(15.3203, 7.8886, 21.8305)
Luminance0.0789 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1782 #178D22
analogous
#5D178D #8D1782 #8D1747
triadic
#8D1782 #828D17 #17828D
tetradic
#8D1782 #8D5D17 #178D22 #17478D
square
#8D1782 #8D5D17 #178D22 #17478D
split-complementary
#8D1782 #478D17 #178D5D
monochromatic
#240621 #580E51 #8D1782 #C220B3 #E03FD1

Accessibility & contrast

On white

8.15
#8D1782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#8D1782 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D1782
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1782#FFFFFF#000000##FFFFFF
##8D17821.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4585
Deuteranopia (green-blind)
#42557F
Tritanopia (blue-blind)
#93274D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8d1782;
/* rgb */ color: rgb(141, 23, 130);
/* oklch */ color: oklch(45.4% 0.187 332.6);
Tailwind
colors: {
  custom: {
    50: '#b265a7',
    500: '#8d1782',
    950: '#000000',
  },
}
SCSS
$custom: #8d1782;
$custom-light: #b265a7;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1782",
  "rgb": {
    "r": 141,
    "g": 23,
    "b": 130
  },
  "hsl": {
    "h": 305.593,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.45387,
    "c": 0.1872,
    "h": 332.6
  },
  "luminance": 0.07887
}

Semantic roles & 50–950 ramp

primary
#8D1782
secondary
#40C04C
accent
#EF4A39
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8D1782

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

Preview Lab → · Contrast checker → · Palette generator →

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