#8A3CAD#8A3CAD

#8A3CAD is a mid, vivid purple. Relative luminance 0.117; OKLCH L 51.1% C 0.180 H 313.6°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#8A3CAD
RGBrgb(138, 60, 173)
HSLhsl(281, 48%, 46%)
HSVhsv(281, 65%, 68%)
CMYKcmyk(20.2%, 65.3%, 0%, 32.2%)
CIE-LABlab(40.66, 51.37, -46.43)
CIE-LCHlch(40.66, 69.25, 317.89°)
OKLaboklab(51.07% 0.1246 -0.1306)
OKLCHoklch(51.07% 0.181 313.6)
XYZxyz(19.6386, 11.6527, 40.7417)
Luminance0.1165 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3CAD #5FAD3C
analogous
#513CAD #8A3CAD #AD3C97
triadic
#8A3CAD #AD8A3C #3CAD8A
tetradic
#8A3CAD #AD513C #5FAD3C #3C97AD
square
#8A3CAD #AD513C #5FAD3C #3C97AD
split-complementary
#8A3CAD #97AD3C #3CAD51
monochromatic
#421C52 #662C80 #8A3CAD #A75FC7 #C08CD7

Accessibility & contrast

On white

6.31
#8A3CAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#8A3CAD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3CAD
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3CAD#FFFFFF#000000##FFFFFF
##8A3CAD1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#025CB0
Deuteranopia (green-blind)
#3662AA
Tritanopia (blue-blind)
#87526F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a3cad;
/* rgb */ color: rgb(138, 60, 173);
/* oklch */ color: oklch(51.1% 0.180 313.6);
Tailwind
colors: {
  custom: {
    50: '#af77c6',
    500: '#8a3cad',
    950: '#000000',
  },
}
SCSS
$custom: #8a3cad;
$custom-light: #af77c6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3cad",
  "rgb": {
    "r": 138,
    "g": 60,
    "b": 173
  },
  "hsl": {
    "h": 281.416,
    "s": 48.498,
    "l": 45.686
  },
  "oklch": {
    "l": 0.51073,
    "c": 0.1805,
    "h": 313.6
  },
  "luminance": 0.11652
}

Semantic roles & 50–950 ramp

primary
#8A3CAD
secondary
#96C283
accent
#D8507A
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3CAD

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

Preview Lab → · Contrast checker → · Palette generator →

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