#8E31AE#8E31AE

#8E31AE is a mid, vivid purple. Relative luminance 0.110; OKLCH L 50.4% C 0.197 H 316.0°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#8E31AE
RGBrgb(142, 49, 174)
HSLhsl(285, 56%, 44%)
HSVhsv(285, 72%, 68%)
CMYKcmyk(18.4%, 71.8%, 0%, 31.8%)
CIE-LABlab(39.59, 57.26, -48.71)
CIE-LCHlch(39.59, 75.18, 319.61°)
OKLaboklab(50.44% 0.1417 -0.1371)
OKLCHoklch(50.44% 0.197 316)
XYZxyz(19.8924, 11.0042, 41.1124)
Luminance0.1100 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E31AE #51AE31
analogous
#4F31AE #8E31AE #AE318F
triadic
#8E31AE #AE8E31 #31AE8E
tetradic
#8E31AE #AE4F31 #51AE31 #318FAE
square
#8E31AE #AE4F31 #51AE31 #318FAE
split-complementary
#8E31AE #8FAE31 #31AE4F
monochromatic
#40164E #67247E #8E31AE #AD4FCD #C37FDB

Accessibility & contrast

On white

6.56
#8E31AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#8E31AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E31AE
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E31AE#FFFFFF#000000##FFFFFF
##8E31AE1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B2
Deuteranopia (green-blind)
#3060AB
Tritanopia (blue-blind)
#8C4B6C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8e31ae;
/* rgb */ color: rgb(142, 49, 174);
/* oklch */ color: oklch(50.4% 0.197 316.0);
Tailwind
colors: {
  custom: {
    50: '#b372c7',
    500: '#8e31ae',
    950: '#000000',
  },
}
SCSS
$custom: #8e31ae;
$custom-light: #b372c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8e31ae",
  "rgb": {
    "r": 142,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 284.64,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.50445,
    "c": 0.1972,
    "h": 316
  },
  "luminance": 0.11003
}

Semantic roles & 50–950 ramp

primary
#8E31AE
secondary
#8BC477
accent
#DF486F
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8E31AE

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

Preview Lab → · Contrast checker → · Palette generator →

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