#8D31AC#8D31AC

#8D31AC is a mid, vivid purple. Relative luminance 0.108; OKLCH L 50.2% C 0.195 H 316.2°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#8D31AC
RGBrgb(141, 49, 172)
HSLhsl(285, 56%, 43%)
HSVhsv(285, 72%, 67%)
CMYKcmyk(18%, 71.5%, 0%, 32.5%)
CIE-LABlab(39.31, 56.64, -47.98)
CIE-LCHlch(39.31, 74.24, 319.73°)
OKLaboklab(50.17% 0.1407 -0.135)
OKLCHoklch(50.17% 0.195 316.2)
XYZxyz(19.5281, 10.8387, 40.0851)
Luminance0.1084 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D31AC #50AC31
analogous
#4F31AC #8D31AC #AC318D
triadic
#8D31AC #AC8D31 #31AC8D
tetradic
#8D31AC #AC4F31 #50AC31 #318DAC
square
#8D31AC #AC4F31 #50AC31 #318DAC
split-complementary
#8D31AC #8DAC31 #31AC4F
monochromatic
#3F164D #66237C #8D31AC #AD4ECC #C37DDA

Accessibility & contrast

On white

6.63
#8D31AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#8D31AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D31AC
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D31AC#FFFFFF#000000##FFFFFF
##8D31AC1.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B0
Deuteranopia (green-blind)
#315FA9
Tritanopia (blue-blind)
#8B4A6B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8d31ac;
/* rgb */ color: rgb(141, 49, 172);
/* oklch */ color: oklch(50.2% 0.195 316.2);
Tailwind
colors: {
  custom: {
    50: '#b272c5',
    500: '#8d31ac',
    950: '#000000',
  },
}
SCSS
$custom: #8d31ac;
$custom-light: #b272c5;
$custom-dark: #000000;
JSON
{
  "hex": "#8d31ac",
  "rgb": {
    "r": 141,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 284.878,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.50173,
    "c": 0.19497,
    "h": 316.2
  },
  "luminance": 0.10838
}

Semantic roles & 50–950 ramp

primary
#8D31AC
secondary
#89C376
accent
#DF496F
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8D31AC

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

Preview Lab → · Contrast checker → · Palette generator →

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