#8A3AAE#8A3AAE

#8A3AAE is a mid, vivid purple. Relative luminance 0.115; OKLCH L 50.9% C 0.184 H 313.5°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#8A3AAE
RGBrgb(138, 58, 174)
HSLhsl(281, 50%, 45%)
HSVhsv(281, 67%, 68%)
CMYKcmyk(20.7%, 66.7%, 0%, 31.8%)
CIE-LABlab(40.39, 52.52, -47.46)
CIE-LCHlch(40.39, 70.78, 317.89°)
OKLaboklab(50.9% 0.1269 -0.1336)
OKLCHoklch(50.9% 0.184 313.5)
XYZxyz(19.6330, 11.4860, 41.2190)
Luminance0.1148 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3AAE #5EAE3A
analogous
#503AAE #8A3AAE #AE3A98
triadic
#8A3AAE #AE8A3A #3AAE8A
tetradic
#8A3AAE #AE503A #5EAE3A #3A98AE
square
#8A3AAE #AE503A #5EAE3A #3A98AE
split-complementary
#8A3AAE #98AE3A #3AAE50
monochromatic
#411B52 #662B80 #8A3AAE #A75CC9 #C08AD8

Accessibility & contrast

On white

6.37
#8A3AAE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#8A3AAE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3AAE
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3AAE#FFFFFF#000000##FFFFFF
##8A3AAE1.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB1
Deuteranopia (green-blind)
#3361AB
Tritanopia (blue-blind)
#86516F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a3aae;
/* rgb */ color: rgb(138, 58, 174);
/* oklch */ color: oklch(50.9% 0.184 313.5);
Tailwind
colors: {
  custom: {
    50: '#b076c7',
    500: '#8a3aae',
    950: '#000000',
  },
}
SCSS
$custom: #8a3aae;
$custom-light: #b076c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3aae",
  "rgb": {
    "r": 138,
    "g": 58,
    "b": 174
  },
  "hsl": {
    "h": 281.379,
    "s": 50,
    "l": 45.49
  },
  "oklch": {
    "l": 0.50898,
    "c": 0.18424,
    "h": 313.5
  },
  "luminance": 0.11485
}

Semantic roles & 50–950 ramp

primary
#8A3AAE
secondary
#96C281
accent
#DA4E79
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3AAE

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

Preview Lab → · Contrast checker → · Palette generator →

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