#8A3CA2#8A3CA2

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

Color values

HEX#8A3CA2
RGBrgb(138, 60, 162)
HSLhsl(286, 46%, 44%)
HSVhsv(286, 63%, 64%)
CMYKcmyk(14.8%, 63%, 0%, 36.5%)
CIE-LABlab(39.99, 49.05, -40.95)
CIE-LCHlch(39.99, 63.89, 320.14°)
OKLaboklab(50.37% 0.1248 -0.1146)
OKLCHoklch(50.37% 0.169 317.4)
XYZxyz(18.6177, 11.2444, 35.3651)
Luminance0.1124 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3CA2 #54A23C
analogous
#573CA2 #8A3CA2 #A23C87
triadic
#8A3CA2 #A28A3C #3CA28A
tetradic
#8A3CA2 #A2573C #54A23C #3C87A2
square
#8A3CA2 #A2573C #54A23C #3C87A2
split-complementary
#8A3CA2 #87A23C #3CA257
monochromatic
#3E1B49 #642B75 #8A3CA2 #A959C2 #C086D2

Accessibility & contrast

On white

6.46
#8A3CA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#8A3CA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3CA2
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3CA2#FFFFFF#000000##FFFFFF
##8A3CA21.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D59A5
Deuteranopia (green-blind)
#3F619F
Tritanopia (blue-blind)
#894E69
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a3ca2;
/* rgb */ color: rgb(138, 60, 162);
/* oklch */ color: oklch(50.4% 0.169 317.4);
Tailwind
colors: {
  custom: {
    50: '#af77be',
    500: '#8a3ca2',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ca2;
$custom-light: #af77be;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ca2",
  "rgb": {
    "r": 138,
    "g": 60,
    "b": 162
  },
  "hsl": {
    "h": 285.882,
    "s": 45.946,
    "l": 43.529
  },
  "oklch": {
    "l": 0.50374,
    "c": 0.16939,
    "h": 317.4
  },
  "luminance": 0.11244
}

Semantic roles & 50–950 ramp

primary
#8A3CA2
secondary
#8CBC7D
accent
#D65271
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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