#8A3AA8#8A3AA8

#8A3AA8 is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.5% C 0.178 H 315.5°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#8A3AA8
RGBrgb(138, 58, 168)
HSLhsl(284, 49%, 44%)
HSVhsv(284, 65%, 66%)
CMYKcmyk(17.9%, 65.5%, 0%, 34.1%)
CIE-LABlab(40.01, 51.24, -44.50)
CIE-LCHlch(40.01, 67.87, 319.03°)
OKLaboklab(50.51% 0.1271 -0.1249)
OKLCHoklch(50.51% 0.178 315.5)
XYZxyz(19.0611, 11.2572, 38.2070)
Luminance0.1126 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3AA8 #58A83A
analogous
#533AA8 #8A3AA8 #A83A8F
triadic
#8A3AA8 #A88A3A #3AA88A
tetradic
#8A3AA8 #A8533A #58A83A #3A8FA8
square
#8A3AA8 #A8533A #58A83A #3A8FA8
split-complementary
#8A3AA8 #8FA83A #3AA853
monochromatic
#3F1B4D #652A7B #8A3AA8 #A859C6 #C087D6

Accessibility & contrast

On white

6.46
#8A3AA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#8A3AA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3AA8
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3AA8#FFFFFF#000000##FFFFFF
##8A3AA81.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A5AAB
Deuteranopia (green-blind)
#3960A5
Tritanopia (blue-blind)
#884F6C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a3aa8;
/* rgb */ color: rgb(138, 58, 168);
/* oklch */ color: oklch(50.5% 0.178 315.5);
Tailwind
colors: {
  custom: {
    50: '#af76c2',
    500: '#8a3aa8',
    950: '#000000',
  },
}
SCSS
$custom: #8a3aa8;
$custom-light: #af76c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3aa8",
  "rgb": {
    "r": 138,
    "g": 58,
    "b": 168
  },
  "hsl": {
    "h": 283.636,
    "s": 48.673,
    "l": 44.314
  },
  "oklch": {
    "l": 0.50506,
    "c": 0.17825,
    "h": 315.5
  },
  "luminance": 0.11257
}

Semantic roles & 50–950 ramp

primary
#8A3AA8
secondary
#90C07E
accent
#D85075
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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