#8A3AA1#8A3AA1

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

Color values

HEX#8A3AA1
RGBrgb(138, 58, 161)
HSLhsl(287, 47%, 43%)
HSVhsv(287, 64%, 63%)
CMYKcmyk(14.3%, 64%, 0%, 36.9%)
CIE-LABlab(39.59, 49.79, -40.99)
CIE-LCHlch(39.59, 64.49, 320.54°)
OKLaboklab(50.06% 0.1273 -0.1147)
OKLCHoklch(50.06% 0.171 318)
XYZxyz(18.4264, 11.0034, 34.8645)
Luminance0.1100 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3AA1 #51A13A
analogous
#563AA1 #8A3AA1 #A13A84
triadic
#8A3AA1 #A18A3A #3AA18A
tetradic
#8A3AA1 #A1563A #51A13A #3A84A1
square
#8A3AA1 #A1563A #51A13A #3A84A1
split-complementary
#8A3AA1 #84A13A #3AA156
monochromatic
#3D1A47 #632A74 #8A3AA1 #AA56C2 #C183D2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A3AA1#FFFFFF#000000##FFFFFF
##8A3AA11.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)
#1A58A4
Deuteranopia (green-blind)
#3E609E
Tritanopia (blue-blind)
#894C68
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a3aa1;
/* rgb */ color: rgb(138, 58, 161);
/* oklch */ color: oklch(50.1% 0.171 318.0);
Tailwind
colors: {
  custom: {
    50: '#af76bd',
    500: '#8a3aa1',
    950: '#000000',
  },
}
SCSS
$custom: #8a3aa1;
$custom-light: #af76bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3aa1",
  "rgb": {
    "r": 138,
    "g": 58,
    "b": 161
  },
  "hsl": {
    "h": 286.602,
    "s": 47.032,
    "l": 42.941
  },
  "oklch": {
    "l": 0.50063,
    "c": 0.17129,
    "h": 318
  },
  "luminance": 0.11003
}

Semantic roles & 50–950 ramp

primary
#8A3AA1
secondary
#89BC7B
accent
#D7516F
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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