#8E3AAA#8E3AAA

#8E3AAA is a mid, vivid purple. Relative luminance 0.117; OKLCH L 51.2% C 0.182 H 316.6°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#8E3AAA
RGBrgb(142, 58, 170)
HSLhsl(285, 49%, 45%)
HSVhsv(285, 66%, 67%)
CMYKcmyk(16.5%, 65.9%, 0%, 33.3%)
CIE-LABlab(40.70, 52.60, -44.55)
CIE-LCHlch(40.70, 68.93, 319.74°)
OKLaboklab(51.16% 0.1321 -0.125)
OKLCHoklch(51.16% 0.182 316.6)
XYZxyz(19.9230, 11.6799, 39.2274)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E3AAA #56AA3A
analogous
#563AAA #8E3AAA #AA3A8E
triadic
#8E3AAA #AA8E3A #3AAA8E
tetradic
#8E3AAA #AA563A #56AA3A #3A8EAA
square
#8E3AAA #AA563A #56AA3A #3A8EAA
split-complementary
#8E3AAA #8EAA3A #3AAA56
monochromatic
#421B4F #682A7C #8E3AAA #AC5AC7 #C388D6

Accessibility & contrast

On white

6.30
#8E3AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#8E3AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E3AAA
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E3AAA#FFFFFF#000000##FFFFFF
##8E3AAA1.006.303.346.30
#FFFFFF6.301.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B5BAD
Deuteranopia (green-blind)
#3B62A7
Tritanopia (blue-blind)
#8D4F6D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8e3aaa;
/* rgb */ color: rgb(142, 58, 170);
/* oklch */ color: oklch(51.2% 0.182 316.6);
Tailwind
colors: {
  custom: {
    50: '#b276c4',
    500: '#8e3aaa',
    950: '#000000',
  },
}
SCSS
$custom: #8e3aaa;
$custom-light: #b276c4;
$custom-dark: #000000;
JSON
{
  "hex": "#8e3aaa",
  "rgb": {
    "r": 142,
    "g": 58,
    "b": 170
  },
  "hsl": {
    "h": 285,
    "s": 49.123,
    "l": 44.706
  },
  "oklch": {
    "l": 0.51163,
    "c": 0.18186,
    "h": 316.6
  },
  "luminance": 0.11679
}

Semantic roles & 50–950 ramp

primary
#8E3AAA
secondary
#90C17F
accent
#D94F72
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8E3AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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