#8A3CA5#8A3CA5

#8A3CA5 is a mid, vivid purple. Relative luminance 0.114; OKLCH L 50.6% C 0.172 H 316.4°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#8A3CA5
RGBrgb(138, 60, 165)
HSLhsl(285, 47%, 44%)
HSVhsv(285, 64%, 65%)
CMYKcmyk(16.4%, 63.6%, 0%, 35.3%)
CIE-LABlab(40.17, 49.67, -42.46)
CIE-LCHlch(40.17, 65.35, 319.48°)
OKLaboklab(50.56% 0.1248 -0.119)
OKLCHoklch(50.56% 0.172 316.4)
XYZxyz(18.8876, 11.3523, 36.7863)
Luminance0.1135 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3CA5 #57A53C
analogous
#553CA5 #8A3CA5 #A53C8C
triadic
#8A3CA5 #A58A3C #3CA58A
tetradic
#8A3CA5 #A5553C #57A53C #3C8CA5
square
#8A3CA5 #A5553C #57A53C #3C8CA5
split-complementary
#8A3CA5 #8CA53C #3CA555
monochromatic
#3F1B4B #642C78 #8A3CA5 #A85BC3 #C088D4

Accessibility & contrast

On white

6.42
#8A3CA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#8A3CA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3CA5
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3CA5#FFFFFF#000000##FFFFFF
##8A3CA51.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185AA8
Deuteranopia (green-blind)
#3D61A2
Tritanopia (blue-blind)
#894F6B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a3ca5;
/* rgb */ color: rgb(138, 60, 165);
/* oklch */ color: oklch(50.6% 0.172 316.4);
Tailwind
colors: {
  custom: {
    50: '#af77c0',
    500: '#8a3ca5',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ca5;
$custom-light: #af77c0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ca5",
  "rgb": {
    "r": 138,
    "g": 60,
    "b": 165
  },
  "hsl": {
    "h": 284.571,
    "s": 46.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.50561,
    "c": 0.1724,
    "h": 316.4
  },
  "luminance": 0.11352
}

Semantic roles & 50–950 ramp

primary
#8A3CA5
secondary
#8FBE7F
accent
#D65174
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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