#8A3AA2#8A3AA2

#8A3AA2 is a mid, vivid purple. Relative luminance 0.110; OKLCH L 50.1% C 0.172 H 317.6°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#8A3AA2
RGBrgb(138, 58, 162)
HSLhsl(286, 47%, 43%)
HSVhsv(286, 64%, 64%)
CMYKcmyk(14.8%, 64.2%, 0%, 36.5%)
CIE-LABlab(39.65, 49.99, -41.49)
CIE-LCHlch(39.65, 64.97, 320.31°)
OKLaboklab(50.13% 0.1273 -0.1161)
OKLCHoklch(50.13% 0.172 317.6)
XYZxyz(18.5149, 11.0388, 35.3308)
Luminance0.1104 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3AA2 #52A23A
analogous
#563AA2 #8A3AA2 #A23A86
triadic
#8A3AA2 #A28A3A #3AA28A
tetradic
#8A3AA2 #A2563A #52A23A #3A86A2
square
#8A3AA2 #A2563A #52A23A #3A86A2
split-complementary
#8A3AA2 #86A23A #3AA256
monochromatic
#3D1A48 #642A75 #8A3AA2 #AA57C3 #C184D3

Accessibility & contrast

On white

6.55
#8A3AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A3AA2
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3AA2#FFFFFF#000000##FFFFFF
##8A3AA21.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1858A5
Deuteranopia (green-blind)
#3D609F
Tritanopia (blue-blind)
#894C69
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a3aa2;
/* rgb */ color: rgb(138, 58, 162);
/* oklch */ color: oklch(50.1% 0.172 317.6);
Tailwind
colors: {
  custom: {
    50: '#af76be',
    500: '#8a3aa2',
    950: '#000000',
  },
}
SCSS
$custom: #8a3aa2;
$custom-light: #af76be;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3aa2",
  "rgb": {
    "r": 138,
    "g": 58,
    "b": 162
  },
  "hsl": {
    "h": 286.154,
    "s": 47.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.50125,
    "c": 0.17229,
    "h": 317.6
  },
  "luminance": 0.11038
}

Semantic roles & 50–950 ramp

primary
#8A3AA2
secondary
#8ABD7B
accent
#D75170
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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