#8A3AA3#8A3AA3

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

Color values

HEX#8A3AA3
RGBrgb(138, 58, 163)
HSLhsl(286, 48%, 43%)
HSVhsv(286, 64%, 64%)
CMYKcmyk(15.3%, 64.4%, 0%, 36.1%)
CIE-LABlab(39.71, 50.20, -42.00)
CIE-LCHlch(39.71, 65.45, 320.08°)
OKLaboklab(50.19% 0.1272 -0.1176)
OKLCHoklch(50.19% 0.173 317.2)
XYZxyz(18.6042, 11.0745, 35.8008)
Luminance0.1107 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3AA3 #53A33A
analogous
#553AA3 #8A3AA3 #A33A87
triadic
#8A3AA3 #A38A3A #3AA38A
tetradic
#8A3AA3 #A3553A #53A33A #3A87A3
square
#8A3AA3 #A3553A #53A33A #3A87A3
split-complementary
#8A3AA3 #87A33A #3AA355
monochromatic
#3E1A49 #642A76 #8A3AA3 #A957C3 #C084D3

Accessibility & contrast

On white

6.53
#8A3AA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#8A3AA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3AA3
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3AA3#FFFFFF#000000##FFFFFF
##8A3AA31.006.533.216.53
#FFFFFF6.531.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1658A6
Deuteranopia (green-blind)
#3D60A0
Tritanopia (blue-blind)
#894D69
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a3aa3;
/* rgb */ color: rgb(138, 58, 163);
/* oklch */ color: oklch(50.2% 0.173 317.2);
Tailwind
colors: {
  custom: {
    50: '#af76bf',
    500: '#8a3aa3',
    950: '#000000',
  },
}
SCSS
$custom: #8a3aa3;
$custom-light: #af76bf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3aa3",
  "rgb": {
    "r": 138,
    "g": 58,
    "b": 163
  },
  "hsl": {
    "h": 285.714,
    "s": 47.511,
    "l": 43.333
  },
  "oklch": {
    "l": 0.50188,
    "c": 0.17328,
    "h": 317.2
  },
  "luminance": 0.11074
}

Semantic roles & 50–950 ramp

primary
#8A3AA3
secondary
#8BBD7C
accent
#D75171
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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