#8A3ABA#8A3ABA

#8A3ABA is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.7% C 0.196 H 309.9°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#8A3ABA
RGBrgb(138, 58, 186)
HSLhsl(278, 52%, 48%)
HSVhsv(278, 69%, 73%)
CMYKcmyk(25.8%, 68.8%, 0%, 27.1%)
CIE-LABlab(41.18, 55.13, -53.27)
CIE-LCHlch(41.18, 76.66, 315.98°)
OKLaboklab(51.72% 0.1259 -0.1507)
OKLCHoklch(51.72% 0.196 309.9)
XYZxyz(20.8555, 11.9750, 47.6576)
Luminance0.1197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3ABA #6ABA3A
analogous
#4A3ABA #8A3ABA #BA3AAA
triadic
#8A3ABA #BA8A3A #3ABA8A
tetradic
#8A3ABA #BA4A3A #6ABA3A #3AAABA
square
#8A3ABA #BA4A3A #6ABA3A #3AAABA
split-complementary
#8A3ABA #AABA3A #3ABA4A
monochromatic
#451D5D #672B8B #8A3ABA #A663CE #C192DD

Accessibility & contrast

On white

6.19
#8A3ABA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#8A3ABA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3ABA
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3ABA#FFFFFF#000000##FFFFFF
##8A3ABA1.006.193.406.19
#FFFFFF6.191.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBE
Deuteranopia (green-blind)
#2462B7
Tritanopia (blue-blind)
#835576
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a3aba;
/* rgb */ color: rgb(138, 58, 186);
/* oklch */ color: oklch(51.7% 0.196 309.9);
Tailwind
colors: {
  custom: {
    50: '#b076cf',
    500: '#8a3aba',
    950: '#000000',
  },
}
SCSS
$custom: #8a3aba;
$custom-light: #b076cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3aba",
  "rgb": {
    "r": 138,
    "g": 58,
    "b": 186
  },
  "hsl": {
    "h": 277.5,
    "s": 52.459,
    "l": 47.843
  },
  "oklch": {
    "l": 0.51715,
    "c": 0.19631,
    "h": 309.9
  },
  "luminance": 0.11975
}

Semantic roles & 50–950 ramp

primary
#8A3ABA
secondary
#A0C888
accent
#DC4C82
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A3ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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