#8A3AA6#8A3AA6

#8A3AA6 is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.4% C 0.176 H 316.2°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#8A3AA6
RGBrgb(138, 58, 166)
HSLhsl(284, 48%, 44%)
HSVhsv(284, 65%, 65%)
CMYKcmyk(16.9%, 65.1%, 0%, 34.9%)
CIE-LABlab(39.89, 50.82, -43.50)
CIE-LCHlch(39.89, 66.90, 319.44°)
OKLaboklab(50.38% 0.1272 -0.122)
OKLCHoklch(50.38% 0.176 316.2)
XYZxyz(18.8762, 11.1833, 37.2333)
Luminance0.1118 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3AA6 #56A63A
analogous
#543AA6 #8A3AA6 #A63A8C
triadic
#8A3AA6 #A68A3A #3AA68A
tetradic
#8A3AA6 #A6543A #56A63A #3A8CA6
square
#8A3AA6 #A6543A #56A63A #3A8CA6
split-complementary
#8A3AA6 #8CA63A #3AA654
monochromatic
#3F1A4B #642A79 #8A3AA6 #A958C5 #C086D5

Accessibility & contrast

On white

6.49
#8A3AA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#8A3AA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3AA6
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3AA6#FFFFFF#000000##FFFFFF
##8A3AA61.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1059A9
Deuteranopia (green-blind)
#3A60A3
Tritanopia (blue-blind)
#884E6B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a3aa6;
/* rgb */ color: rgb(138, 58, 166);
/* oklch */ color: oklch(50.4% 0.176 316.2);
Tailwind
colors: {
  custom: {
    50: '#af76c1',
    500: '#8a3aa6',
    950: '#000000',
  },
}
SCSS
$custom: #8a3aa6;
$custom-light: #af76c1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3aa6",
  "rgb": {
    "r": 138,
    "g": 58,
    "b": 166
  },
  "hsl": {
    "h": 284.444,
    "s": 48.214,
    "l": 43.922
  },
  "oklch": {
    "l": 0.50378,
    "c": 0.17625,
    "h": 316.2
  },
  "luminance": 0.11183
}

Semantic roles & 50–950 ramp

primary
#8A3AA6
secondary
#8EBF7D
accent
#D85073
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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