#8A3CA6#8A3CA6

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

Color values

HEX#8A3CA6
RGBrgb(138, 60, 166)
HSLhsl(284, 47%, 44%)
HSVhsv(284, 64%, 65%)
CMYKcmyk(16.9%, 63.9%, 0%, 34.9%)
CIE-LABlab(40.23, 49.88, -42.96)
CIE-LCHlch(40.23, 65.83, 319.27°)
OKLaboklab(50.62% 0.1248 -0.1204)
OKLCHoklch(50.62% 0.173 316)
XYZxyz(18.9790, 11.3888, 37.2675)
Luminance0.1139 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3CA6 #58A63C
analogous
#553CA6 #8A3CA6 #A63C8D
triadic
#8A3CA6 #A68A3C #3CA68A
tetradic
#8A3CA6 #A6553C #58A63C #3C8DA6
square
#8A3CA6 #A6553C #58A63C #3C8DA6
split-complementary
#8A3CA6 #8DA63C #3CA655
monochromatic
#3F1C4C #652C79 #8A3CA6 #A85BC4 #C088D4

Accessibility & contrast

On white

6.41
#8A3CA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#8A3CA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3CA6
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3CA6#FFFFFF#000000##FFFFFF
##8A3CA61.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#165AA9
Deuteranopia (green-blind)
#3C61A3
Tritanopia (blue-blind)
#884F6B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a3ca6;
/* rgb */ color: rgb(138, 60, 166);
/* oklch */ color: oklch(50.6% 0.173 316.0);
Tailwind
colors: {
  custom: {
    50: '#af77c1',
    500: '#8a3ca6',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ca6;
$custom-light: #af77c1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ca6",
  "rgb": {
    "r": 138,
    "g": 60,
    "b": 166
  },
  "hsl": {
    "h": 284.151,
    "s": 46.903,
    "l": 44.314
  },
  "oklch": {
    "l": 0.50624,
    "c": 0.17341,
    "h": 316
  },
  "luminance": 0.11388
}

Semantic roles & 50–950 ramp

primary
#8A3CA6
secondary
#90BE7F
accent
#D75174
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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