#8A3CAA#8A3CAA

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

Color values

HEX#8A3CAA
RGBrgb(138, 60, 170)
HSLhsl(283, 48%, 45%)
HSVhsv(283, 65%, 67%)
CMYKcmyk(18.8%, 64.7%, 0%, 33.3%)
CIE-LABlab(40.47, 50.73, -44.95)
CIE-LCHlch(40.47, 67.78, 318.46°)
OKLaboklab(50.88% 0.1247 -0.1263)
OKLCHoklch(50.88% 0.177 314.6)
XYZxyz(19.3516, 11.5379, 39.2301)
Luminance0.1154 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3CAA #5CAA3C
analogous
#533CAA #8A3CAA #AA3C93
triadic
#8A3CAA #AA8A3C #3CAA8A
tetradic
#8A3CAA #AA533C #5CAA3C #3C93AA
square
#8A3CAA #AA533C #5CAA3C #3C93AA
split-complementary
#8A3CAA #93AA3C #3CAA53
monochromatic
#411C50 #652C7D #8A3CAA #A75DC6 #C08BD6

Accessibility & contrast

On white

6.35
#8A3CAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#8A3CAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3CAA
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3CAA#FFFFFF#000000##FFFFFF
##8A3CAA1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D5BAD
Deuteranopia (green-blind)
#3961A7
Tritanopia (blue-blind)
#87516E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a3caa;
/* rgb */ color: rgb(138, 60, 170);
/* oklch */ color: oklch(50.9% 0.177 314.6);
Tailwind
colors: {
  custom: {
    50: '#af77c4',
    500: '#8a3caa',
    950: '#000000',
  },
}
SCSS
$custom: #8a3caa;
$custom-light: #af77c4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3caa",
  "rgb": {
    "r": 138,
    "g": 60,
    "b": 170
  },
  "hsl": {
    "h": 282.545,
    "s": 47.826,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50879,
    "c": 0.17745,
    "h": 314.6
  },
  "luminance": 0.11537
}

Semantic roles & 50–950 ramp

primary
#8A3CAA
secondary
#94C081
accent
#D75078
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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