#8A34AB#8A34AB

#8A34AB is a mid, vivid purple. Relative luminance 0.108; OKLCH L 50.0% C 0.189 H 315.0°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#8A34AB
RGBrgb(138, 52, 171)
HSLhsl(283, 53%, 44%)
HSVhsv(283, 70%, 67%)
CMYKcmyk(19.3%, 69.6%, 0%, 32.9%)
CIE-LABlab(39.24, 54.54, -47.52)
CIE-LCHlch(39.24, 72.34, 318.94°)
OKLaboklab(50.02% 0.1338 -0.1337)
OKLCHoklch(50.02% 0.189 315)
XYZxyz(19.0587, 10.8002, 39.6009)
Luminance0.1080 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A34AB #55AB34
analogous
#4E34AB #8A34AB #AB3490
triadic
#8A34AB #AB8A34 #34AB8A
tetradic
#8A34AB #AB4E34 #55AB34 #3490AB
square
#8A34AB #AB4E34 #55AB34 #3490AB
split-complementary
#8A34AB #90AB34 #34AB4E
monochromatic
#3E174D #64267C #8A34AB #A952CA #C081D9

Accessibility & contrast

On white

6.65
#8A34AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#8A34AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A34AB
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A34AB#FFFFFF#000000##FFFFFF
##8A34AB1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AE
Deuteranopia (green-blind)
#305FA8
Tritanopia (blue-blind)
#874C6C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a34ab;
/* rgb */ color: rgb(138, 52, 171);
/* oklch */ color: oklch(50.0% 0.189 315.0);
Tailwind
colors: {
  custom: {
    50: '#b073c5',
    500: '#8a34ab',
    950: '#000000',
  },
}
SCSS
$custom: #8a34ab;
$custom-light: #b073c5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a34ab",
  "rgb": {
    "r": 138,
    "g": 52,
    "b": 171
  },
  "hsl": {
    "h": 283.361,
    "s": 53.363,
    "l": 43.725
  },
  "oklch": {
    "l": 0.50015,
    "c": 0.18917,
    "h": 315
  },
  "luminance": 0.108
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A34AB

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

Preview Lab → · Contrast checker → · Palette generator →

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