#8A3AA4#8A3AA4

#8A3AA4 is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.3% C 0.174 H 316.9°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#8A3AA4
RGBrgb(138, 58, 164)
HSLhsl(285, 48%, 44%)
HSVhsv(285, 65%, 64%)
CMYKcmyk(15.9%, 64.6%, 0%, 35.7%)
CIE-LABlab(39.77, 50.41, -42.50)
CIE-LCHlch(39.77, 65.93, 319.86°)
OKLaboklab(50.25% 0.1272 -0.1191)
OKLCHoklch(50.25% 0.174 316.9)
XYZxyz(18.6941, 11.1104, 36.2746)
Luminance0.1111 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3AA4 #54A43A
analogous
#553AA4 #8A3AA4 #A43A89
triadic
#8A3AA4 #A48A3A #3AA48A
tetradic
#8A3AA4 #A4553A #54A43A #3A89A4
square
#8A3AA4 #A4553A #54A43A #3A89A4
split-complementary
#8A3AA4 #89A43A #3AA455
monochromatic
#3E1A4A #642A77 #8A3AA4 #A957C4 #C085D4

Accessibility & contrast

On white

6.52
#8A3AA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#8A3AA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3AA4
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3AA4#FFFFFF#000000##FFFFFF
##8A3AA41.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1459A7
Deuteranopia (green-blind)
#3C60A1
Tritanopia (blue-blind)
#894D6A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a3aa4;
/* rgb */ color: rgb(138, 58, 164);
/* oklch */ color: oklch(50.3% 0.174 316.9);
Tailwind
colors: {
  custom: {
    50: '#af76bf',
    500: '#8a3aa4',
    950: '#000000',
  },
}
SCSS
$custom: #8a3aa4;
$custom-light: #af76bf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3aa4",
  "rgb": {
    "r": 138,
    "g": 58,
    "b": 164
  },
  "hsl": {
    "h": 285.283,
    "s": 47.748,
    "l": 43.529
  },
  "oklch": {
    "l": 0.50251,
    "c": 0.17426,
    "h": 316.9
  },
  "luminance": 0.1111
}

Semantic roles & 50–950 ramp

primary
#8A3AA4
secondary
#8CBE7C
accent
#D75072
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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