#8A34A7#8A34A7

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

Color values

HEX#8A34A7
RGBrgb(138, 52, 167)
HSLhsl(285, 53%, 43%)
HSVhsv(285, 69%, 65%)
CMYKcmyk(17.4%, 68.9%, 0%, 34.5%)
CIE-LABlab(38.98, 53.72, -45.54)
CIE-LCHlch(38.98, 70.43, 319.71°)
OKLaboklab(49.75% 0.1341 -0.1279)
OKLCHoklch(49.75% 0.185 316.3)
XYZxyz(18.6832, 10.6500, 37.6232)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A34A7 #51A734
analogous
#5134A7 #8A34A7 #A7348A
triadic
#8A34A7 #A78A34 #34A78A
tetradic
#8A34A7 #A75134 #51A734 #348AA7
square
#8A34A7 #A75134 #51A734 #348AA7
split-complementary
#8A34A7 #8AA734 #34A751
monochromatic
#3D174A #632578 #8A34A7 #AA50C8 #C17ED7

Accessibility & contrast

On white

6.71
#8A34A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#8A34A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A34A7
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A34A7#FFFFFF#000000##FFFFFF
##8A34A71.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AA
Deuteranopia (green-blind)
#345EA4
Tritanopia (blue-blind)
#884A69
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a34a7;
/* rgb */ color: rgb(138, 52, 167);
/* oklch */ color: oklch(49.7% 0.185 316.3);
Tailwind
colors: {
  custom: {
    50: '#b073c2',
    500: '#8a34a7',
    950: '#000000',
  },
}
SCSS
$custom: #8a34a7;
$custom-light: #b073c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a34a7",
  "rgb": {
    "r": 138,
    "g": 52,
    "b": 167
  },
  "hsl": {
    "h": 284.87,
    "s": 52.511,
    "l": 42.941
  },
  "oklch": {
    "l": 0.49748,
    "c": 0.18533,
    "h": 316.3
  },
  "luminance": 0.10649
}

Semantic roles & 50–950 ramp

primary
#8A34A7
secondary
#89C077
accent
#DC4C70
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8A34A7

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

Preview Lab → · Contrast checker → · Palette generator →

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