#8A3AAA#8A3AAA

#8A3AAA is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.6% C 0.180 H 314.8°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#8A3AAA
RGBrgb(138, 58, 170)
HSLhsl(283, 49%, 45%)
HSVhsv(283, 66%, 67%)
CMYKcmyk(18.8%, 65.9%, 0%, 33.3%)
CIE-LABlab(40.13, 51.66, -45.49)
CIE-LCHlch(40.13, 68.84, 318.64°)
OKLaboklab(50.64% 0.1271 -0.1278)
OKLCHoklch(50.64% 0.18 314.8)
XYZxyz(19.2488, 11.3323, 39.1958)
Luminance0.1133 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3AAA #5AAA3A
analogous
#523AAA #8A3AAA #AA3A92
triadic
#8A3AAA #AA8A3A #3AAA8A
tetradic
#8A3AAA #AA523A #5AAA3A #3A92AA
square
#8A3AAA #AA523A #5AAA3A #3A92AA
split-complementary
#8A3AAA #92AA3A #3AAA52
monochromatic
#401B4F #652A7C #8A3AAA #A85AC7 #C088D6

Accessibility & contrast

On white

6.43
#8A3AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#8A3AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3AAA
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3AAA#FFFFFF#000000##FFFFFF
##8A3AAA1.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#035AAD
Deuteranopia (green-blind)
#3761A7
Tritanopia (blue-blind)
#874F6D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a3aaa;
/* rgb */ color: rgb(138, 58, 170);
/* oklch */ color: oklch(50.6% 0.180 314.8);
Tailwind
colors: {
  custom: {
    50: '#af76c4',
    500: '#8a3aaa',
    950: '#000000',
  },
}
SCSS
$custom: #8a3aaa;
$custom-light: #af76c4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3aaa",
  "rgb": {
    "r": 138,
    "g": 58,
    "b": 170
  },
  "hsl": {
    "h": 282.857,
    "s": 49.123,
    "l": 44.706
  },
  "oklch": {
    "l": 0.50635,
    "c": 0.18024,
    "h": 314.8
  },
  "luminance": 0.11332
}

Semantic roles & 50–950 ramp

primary
#8A3AAA
secondary
#92C17F
accent
#D94F76
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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