#8A3BA4#8A3BA4

#8A3BA4 is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.4% C 0.173 H 316.8°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#8A3BA4
RGBrgb(138, 59, 164)
HSLhsl(285, 47%, 44%)
HSVhsv(285, 64%, 64%)
CMYKcmyk(15.9%, 64%, 0%, 35.7%)
CIE-LABlab(39.94, 49.94, -42.23)
CIE-LCHlch(39.94, 65.40, 319.78°)
OKLaboklab(50.37% 0.126 -0.1183)
OKLCHoklch(50.37% 0.173 316.8)
XYZxyz(18.7450, 11.2123, 36.2915)
Luminance0.1121 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3BA4 #55A43B
analogous
#553BA4 #8A3BA4 #A43B89
triadic
#8A3BA4 #A48A3B #3BA48A
tetradic
#8A3BA4 #A4553B #55A43B #3B89A4
square
#8A3BA4 #A4553B #55A43B #3B89A4
split-complementary
#8A3BA4 #89A43B #3BA455
monochromatic
#3E1B4A #642B77 #8A3BA4 #A959C3 #C086D3

Accessibility & contrast

On white

6.48
#8A3BA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#8A3BA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3BA4
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3BA4#FFFFFF#000000##FFFFFF
##8A3BA41.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1759A7
Deuteranopia (green-blind)
#3D60A1
Tritanopia (blue-blind)
#894E6A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a3ba4;
/* rgb */ color: rgb(138, 59, 164);
/* oklch */ color: oklch(50.4% 0.173 316.8);
Tailwind
colors: {
  custom: {
    50: '#af76bf',
    500: '#8a3ba4',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ba4;
$custom-light: #af76bf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ba4",
  "rgb": {
    "r": 138,
    "g": 59,
    "b": 164
  },
  "hsl": {
    "h": 285.143,
    "s": 47.085,
    "l": 43.725
  },
  "oklch": {
    "l": 0.50373,
    "c": 0.17284,
    "h": 316.8
  },
  "luminance": 0.11212
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A3BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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