#8A3CA4#8A3CA4

#8A3CA4 is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.5% C 0.171 H 316.7°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#8A3CA4
RGBrgb(138, 60, 164)
HSLhsl(285, 46%, 44%)
HSVhsv(285, 63%, 64%)
CMYKcmyk(15.9%, 63.4%, 0%, 35.7%)
CIE-LABlab(40.11, 49.46, -41.95)
CIE-LCHlch(40.11, 64.86, 319.70°)
OKLaboklab(50.5% 0.1248 -0.1175)
OKLCHoklch(50.5% 0.171 316.7)
XYZxyz(18.7969, 11.3160, 36.3088)
Luminance0.1132 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3CA4 #56A43C
analogous
#563CA4 #8A3CA4 #A43C8A
triadic
#8A3CA4 #A48A3C #3CA48A
tetradic
#8A3CA4 #A4563C #56A43C #3C8AA4
square
#8A3CA4 #A4563C #56A43C #3C8AA4
split-complementary
#8A3CA4 #8AA43C #3CA456
monochromatic
#3F1B4A #642C77 #8A3CA4 #A95AC3 #C087D3

Accessibility & contrast

On white

6.44
#8A3CA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#8A3CA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3CA4
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3CA4#FFFFFF#000000##FFFFFF
##8A3CA41.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5AA7
Deuteranopia (green-blind)
#3E61A1
Tritanopia (blue-blind)
#894E6A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a3ca4;
/* rgb */ color: rgb(138, 60, 164);
/* oklch */ color: oklch(50.5% 0.171 316.7);
Tailwind
colors: {
  custom: {
    50: '#af77bf',
    500: '#8a3ca4',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ca4;
$custom-light: #af77bf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ca4",
  "rgb": {
    "r": 138,
    "g": 60,
    "b": 164
  },
  "hsl": {
    "h": 285,
    "s": 46.429,
    "l": 43.922
  },
  "oklch": {
    "l": 0.50498,
    "c": 0.1714,
    "h": 316.7
  },
  "luminance": 0.11315
}

Semantic roles & 50–950 ramp

primary
#8A3CA4
secondary
#8EBD7E
accent
#D65273
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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