#8A34AA#8A34AA

#8A34AA is a mid, vivid purple. Relative luminance 0.108; OKLCH L 49.9% C 0.188 H 315.3°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#8A34AA
RGBrgb(138, 52, 170)
HSLhsl(284, 53%, 44%)
HSVhsv(284, 69%, 67%)
CMYKcmyk(18.8%, 69.4%, 0%, 33.3%)
CIE-LABlab(39.18, 54.34, -47.03)
CIE-LCHlch(39.18, 71.86, 319.13°)
OKLaboklab(49.95% 0.1339 -0.1323)
OKLCHoklch(49.95% 0.188 315.3)
XYZxyz(18.9638, 10.7622, 39.1008)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A34AA #54AA34
analogous
#4F34AA #8A34AA #AA348F
triadic
#8A34AA #AA8A34 #34AA8A
tetradic
#8A34AA #AA4F34 #54AA34 #348FAA
square
#8A34AA #AA4F34 #54AA34 #348FAA
split-complementary
#8A34AA #8FAA34 #34AA4F
monochromatic
#3E174C #64267B #8A34AA #A951CA #C080D8

Accessibility & contrast

On white

6.66
#8A34AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#8A34AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A34AA
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A34AA#FFFFFF#000000##FFFFFF
##8A34AA1.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AD
Deuteranopia (green-blind)
#315FA7
Tritanopia (blue-blind)
#884C6B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a34aa;
/* rgb */ color: rgb(138, 52, 170);
/* oklch */ color: oklch(49.9% 0.188 315.3);
Tailwind
colors: {
  custom: {
    50: '#b073c4',
    500: '#8a34aa',
    950: '#000000',
  },
}
SCSS
$custom: #8a34aa;
$custom-light: #b073c4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a34aa",
  "rgb": {
    "r": 138,
    "g": 52,
    "b": 170
  },
  "hsl": {
    "h": 283.729,
    "s": 53.153,
    "l": 43.529
  },
  "oklch": {
    "l": 0.49948,
    "c": 0.18821,
    "h": 315.3
  },
  "luminance": 0.10762
}

Semantic roles & 50–950 ramp

primary
#8A34AA
secondary
#8CC178
accent
#DD4B73
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A34AA

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

Preview Lab → · Contrast checker → · Palette generator →

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