#8A3CA1#8A3CA1

#8A3CA1 is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.3% C 0.168 H 317.8°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#8A3CA1
RGBrgb(138, 60, 161)
HSLhsl(286, 46%, 43%)
HSVhsv(286, 63%, 63%)
CMYKcmyk(14.3%, 62.7%, 0%, 36.9%)
CIE-LABlab(39.93, 48.84, -40.44)
CIE-LCHlch(39.93, 63.41, 320.38°)
OKLaboklab(50.31% 0.1248 -0.1131)
OKLCHoklch(50.31% 0.168 317.8)
XYZxyz(18.5292, 11.2089, 34.8988)
Luminance0.1121 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3CA1 #53A13C
analogous
#583CA1 #8A3CA1 #A13C85
triadic
#8A3CA1 #A18A3C #3CA18A
tetradic
#8A3CA1 #A1583C #53A13C #3C85A1
square
#8A3CA1 #A1583C #53A13C #3C85A1
split-complementary
#8A3CA1 #85A13C #3CA158
monochromatic
#3E1B48 #642B74 #8A3CA1 #A959C1 #C086D2

Accessibility & contrast

On white

6.48
#8A3CA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#8A3CA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3CA1
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3CA1#FFFFFF#000000##FFFFFF
##8A3CA11.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E59A4
Deuteranopia (green-blind)
#40619E
Tritanopia (blue-blind)
#894D69
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a3ca1;
/* rgb */ color: rgb(138, 60, 161);
/* oklch */ color: oklch(50.3% 0.168 317.8);
Tailwind
colors: {
  custom: {
    50: '#af77bd',
    500: '#8a3ca1',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ca1;
$custom-light: #af77bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ca1",
  "rgb": {
    "r": 138,
    "g": 60,
    "b": 161
  },
  "hsl": {
    "h": 286.337,
    "s": 45.701,
    "l": 43.333
  },
  "oklch": {
    "l": 0.50312,
    "c": 0.16839,
    "h": 317.8
  },
  "luminance": 0.11208
}

Semantic roles & 50–950 ramp

primary
#8A3CA1
secondary
#8BBC7D
accent
#D55270
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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