#8A34A4#8A34A4

#8A34A4 is a mid, vivid purple. Relative luminance 0.105; OKLCH L 49.6% C 0.182 H 317.4°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#8A34A4
RGBrgb(138, 52, 164)
HSLhsl(286, 52%, 42%)
HSVhsv(286, 68%, 64%)
CMYKcmyk(15.9%, 68.3%, 0%, 35.7%)
CIE-LABlab(38.80, 53.10, -44.05)
CIE-LCHlch(38.80, 69.00, 320.32°)
OKLaboklab(49.55% 0.1343 -0.1236)
OKLCHoklch(49.55% 0.182 317.4)
XYZxyz(18.4091, 10.5404, 36.1795)
Luminance0.1054 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A34A4 #4EA434
analogous
#5234A4 #8A34A4 #A43486
triadic
#8A34A4 #A48A34 #34A48A
tetradic
#8A34A4 #A45234 #4EA434 #3486A4
square
#8A34A4 #A45234 #4EA434 #3486A4
split-complementary
#8A34A4 #86A434 #34A452
monochromatic
#3C1747 #632576 #8A34A4 #AB4EC7 #C17DD6

Accessibility & contrast

On white

6.76
#8A34A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#8A34A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A34A4
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A34A4#FFFFFF#000000##FFFFFF
##8A34A41.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A7
Deuteranopia (green-blind)
#375EA1
Tritanopia (blue-blind)
#894968
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a34a4;
/* rgb */ color: rgb(138, 52, 164);
/* oklch */ color: oklch(49.6% 0.182 317.4);
Tailwind
colors: {
  custom: {
    50: '#af72bf',
    500: '#8a34a4',
    950: '#000000',
  },
}
SCSS
$custom: #8a34a4;
$custom-light: #af72bf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a34a4",
  "rgb": {
    "r": 138,
    "g": 52,
    "b": 164
  },
  "hsl": {
    "h": 286.071,
    "s": 51.852,
    "l": 42.353
  },
  "oklch": {
    "l": 0.49552,
    "c": 0.18248,
    "h": 317.4
  },
  "luminance": 0.1054
}

Semantic roles & 50–950 ramp

primary
#8A34A4
secondary
#86BF75
accent
#DB4C6E
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A34A4

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

Preview Lab → · Contrast checker → · Palette generator →

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