#8A34A6#8A34A6

#8A34A6 is a mid, vivid purple. Relative luminance 0.106; OKLCH L 49.7% C 0.184 H 316.7°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#8A34A6
RGBrgb(138, 52, 166)
HSLhsl(285, 52%, 43%)
HSVhsv(285, 69%, 65%)
CMYKcmyk(16.9%, 68.7%, 0%, 34.9%)
CIE-LABlab(38.92, 53.51, -45.05)
CIE-LCHlch(38.92, 69.95, 319.91°)
OKLaboklab(49.68% 0.1341 -0.1265)
OKLCHoklch(49.68% 0.184 316.7)
XYZxyz(18.5911, 10.6132, 37.1382)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A34A6 #50A634
analogous
#5134A6 #8A34A6 #A63489
triadic
#8A34A6 #A68A34 #34A68A
tetradic
#8A34A6 #A65134 #50A634 #3489A6
square
#8A34A6 #A65134 #50A634 #3489A6
split-complementary
#8A34A6 #89A634 #34A651
monochromatic
#3D1749 #632577 #8A34A6 #AA4FC8 #C17ED7

Accessibility & contrast

On white

6.73
#8A34A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#8A34A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A34A6
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A34A6#FFFFFF#000000##FFFFFF
##8A34A61.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A9
Deuteranopia (green-blind)
#355EA3
Tritanopia (blue-blind)
#894A69
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a34a6;
/* rgb */ color: rgb(138, 52, 166);
/* oklch */ color: oklch(49.7% 0.184 316.7);
Tailwind
colors: {
  custom: {
    50: '#b073c1',
    500: '#8a34a6',
    950: '#000000',
  },
}
SCSS
$custom: #8a34a6;
$custom-light: #b073c1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a34a6",
  "rgb": {
    "r": 138,
    "g": 52,
    "b": 166
  },
  "hsl": {
    "h": 285.263,
    "s": 52.294,
    "l": 42.745
  },
  "oklch": {
    "l": 0.49682,
    "c": 0.18438,
    "h": 316.7
  },
  "luminance": 0.10612
}

Semantic roles & 50–950 ramp

primary
#8A34A6
secondary
#88C076
accent
#DC4C6F
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A34A6

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

Preview Lab → · Contrast checker → · Palette generator →

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