#8A3AB1#8A3AB1

#8A3AB1 is a mid, vivid purple. Relative luminance 0.116; OKLCH L 51.1% C 0.187 H 312.6°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#8A3AB1
RGBrgb(138, 58, 177)
HSLhsl(280, 51%, 46%)
HSVhsv(280, 67%, 69%)
CMYKcmyk(22%, 67.2%, 0%, 30.6%)
CIE-LABlab(40.58, 53.16, -48.93)
CIE-LCHlch(40.58, 72.25, 317.37°)
OKLaboklab(51.1% 0.1267 -0.1379)
OKLCHoklch(51.1% 0.187 312.6)
XYZxyz(19.9287, 11.6043, 42.7765)
Luminance0.1160 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3AB1 #61B13A
analogous
#4E3AB1 #8A3AB1 #B13A9C
triadic
#8A3AB1 #B18A3A #3AB18A
tetradic
#8A3AB1 #B14E3A #61B13A #3A9CB1
square
#8A3AB1 #B14E3A #61B13A #3A9CB1
split-complementary
#8A3AB1 #9CB13A #3AB14E
monochromatic
#421C55 #662B83 #8A3AB1 #A75ECA #C08CD9

Accessibility & contrast

On white

6.32
#8A3AB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#8A3AB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3AB1
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3AB1#FFFFFF#000000##FFFFFF
##8A3AB11.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB5
Deuteranopia (green-blind)
#3061AE
Tritanopia (blue-blind)
#865271
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a3ab1;
/* rgb */ color: rgb(138, 58, 177);
/* oklch */ color: oklch(51.1% 0.187 312.6);
Tailwind
colors: {
  custom: {
    50: '#b076c9',
    500: '#8a3ab1',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ab1;
$custom-light: #b076c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ab1",
  "rgb": {
    "r": 138,
    "g": 58,
    "b": 177
  },
  "hsl": {
    "h": 280.336,
    "s": 50.638,
    "l": 46.078
  },
  "oklch": {
    "l": 0.51098,
    "c": 0.18726,
    "h": 312.6
  },
  "luminance": 0.11604
}

Semantic roles & 50–950 ramp

primary
#8A3AB1
secondary
#98C483
accent
#DA4E7C
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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