#8A3BA1#8A3BA1

#8A3BA1 is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.2% C 0.170 H 317.9°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#8A3BA1
RGBrgb(138, 59, 161)
HSLhsl(286, 46%, 43%)
HSVhsv(286, 63%, 63%)
CMYKcmyk(14.3%, 63.4%, 0%, 36.9%)
CIE-LABlab(39.76, 49.32, -40.72)
CIE-LCHlch(39.76, 63.95, 320.46°)
OKLaboklab(50.19% 0.126 -0.1139)
OKLCHoklch(50.19% 0.17 317.9)
XYZxyz(18.4773, 11.1052, 34.8815)
Luminance0.1110 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3BA1 #52A13B
analogous
#573BA1 #8A3BA1 #A13B85
triadic
#8A3BA1 #A18A3B #3BA18A
tetradic
#8A3BA1 #A1573B #52A13B #3B85A1
square
#8A3BA1 #A1573B #52A13B #3B85A1
split-complementary
#8A3BA1 #85A13B #3BA157
monochromatic
#3D1A47 #642B74 #8A3BA1 #AA58C2 #C184D2

Accessibility & contrast

On white

6.52
#8A3BA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#8A3BA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3BA1
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3BA1#FFFFFF#000000##FFFFFF
##8A3BA11.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C59A4
Deuteranopia (green-blind)
#3F609E
Tritanopia (blue-blind)
#894D68
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a3ba1;
/* rgb */ color: rgb(138, 59, 161);
/* oklch */ color: oklch(50.2% 0.170 317.9);
Tailwind
colors: {
  custom: {
    50: '#af76bd',
    500: '#8a3ba1',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ba1;
$custom-light: #af76bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ba1",
  "rgb": {
    "r": 138,
    "g": 59,
    "b": 161
  },
  "hsl": {
    "h": 286.471,
    "s": 46.364,
    "l": 43.137
  },
  "oklch": {
    "l": 0.50187,
    "c": 0.16985,
    "h": 317.9
  },
  "luminance": 0.11104
}

Semantic roles & 50–950 ramp

primary
#8A3BA1
secondary
#8ABC7C
accent
#D65270
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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