#8A3AA5#8A3AA5

#8A3AA5 is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.3% C 0.175 H 316.5°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#8A3AA5
RGBrgb(138, 58, 165)
HSLhsl(285, 48%, 44%)
HSVhsv(285, 65%, 65%)
CMYKcmyk(16.4%, 64.8%, 0%, 35.3%)
CIE-LABlab(39.83, 50.61, -43.00)
CIE-LCHlch(39.83, 66.41, 319.65°)
OKLaboklab(50.31% 0.1272 -0.1205)
OKLCHoklch(50.31% 0.175 316.5)
XYZxyz(18.7848, 11.1467, 36.7520)
Luminance0.1115 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3AA5 #55A53A
analogous
#543AA5 #8A3AA5 #A53A8A
triadic
#8A3AA5 #A58A3A #3AA58A
tetradic
#8A3AA5 #A5543A #55A53A #3A8AA5
square
#8A3AA5 #A5543A #55A53A #3A8AA5
split-complementary
#8A3AA5 #8AA53A #3AA554
monochromatic
#3E1A4A #642A78 #8A3AA5 #A958C4 #C085D4

Accessibility & contrast

On white

6.50
#8A3AA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#8A3AA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3AA5
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3AA5#FFFFFF#000000##FFFFFF
##8A3AA51.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1259A8
Deuteranopia (green-blind)
#3B60A2
Tritanopia (blue-blind)
#894D6A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a3aa5;
/* rgb */ color: rgb(138, 58, 165);
/* oklch */ color: oklch(50.3% 0.175 316.5);
Tailwind
colors: {
  custom: {
    50: '#af76c0',
    500: '#8a3aa5',
    950: '#000000',
  },
}
SCSS
$custom: #8a3aa5;
$custom-light: #af76c0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3aa5",
  "rgb": {
    "r": 138,
    "g": 58,
    "b": 165
  },
  "hsl": {
    "h": 284.86,
    "s": 47.982,
    "l": 43.725
  },
  "oklch": {
    "l": 0.50314,
    "c": 0.17526,
    "h": 316.5
  },
  "luminance": 0.11146
}

Semantic roles & 50–950 ramp

primary
#8A3AA5
secondary
#8DBE7D
accent
#D85072
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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