#8E31AC#8E31AC

#8E31AC is a mid, vivid purple. Relative luminance 0.109; OKLCH L 50.3% C 0.195 H 316.6°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#8E31AC
RGBrgb(142, 49, 172)
HSLhsl(285, 56%, 43%)
HSVhsv(285, 72%, 67%)
CMYKcmyk(17.4%, 71.5%, 0%, 32.5%)
CIE-LABlab(39.46, 56.86, -47.74)
CIE-LCHlch(39.46, 74.24, 319.98°)
OKLaboklab(50.31% 0.1419 -0.1342)
OKLCHoklch(50.31% 0.195 316.6)
XYZxyz(19.6989, 10.9268, 40.0932)
Luminance0.1093 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E31AC #4FAC31
analogous
#5031AC #8E31AC #AC318C
triadic
#8E31AC #AC8E31 #31AC8E
tetradic
#8E31AC #AC5031 #4FAC31 #318CAC
square
#8E31AC #AC5031 #4FAC31 #318CAC
split-complementary
#8E31AC #8CAC31 #31AC50
monochromatic
#3F164D #67237C #8E31AC #AE4ECC #C37DDA

Accessibility & contrast

On white

6.59
#8E31AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#8E31AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E31AC
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E31AC#FFFFFF#000000##FFFFFF
##8E31AC1.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B0
Deuteranopia (green-blind)
#3260A9
Tritanopia (blue-blind)
#8C4A6B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8e31ac;
/* rgb */ color: rgb(142, 49, 172);
/* oklch */ color: oklch(50.3% 0.195 316.6);
Tailwind
colors: {
  custom: {
    50: '#b372c5',
    500: '#8e31ac',
    950: '#000000',
  },
}
SCSS
$custom: #8e31ac;
$custom-light: #b372c5;
$custom-dark: #000000;
JSON
{
  "hex": "#8e31ac",
  "rgb": {
    "r": 142,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 285.366,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.5031,
    "c": 0.19535,
    "h": 316.6
  },
  "luminance": 0.10926
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8E31AC

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

Preview Lab → · Contrast checker → · Palette generator →

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