#8A34A5#8A34A5

#8A34A5 is a mid, vivid purple. Relative luminance 0.106; OKLCH L 49.6% C 0.183 H 317.0°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#8A34A5
RGBrgb(138, 52, 165)
HSLhsl(286, 52%, 43%)
HSVhsv(286, 68%, 65%)
CMYKcmyk(16.4%, 68.5%, 0%, 35.3%)
CIE-LABlab(38.86, 53.31, -44.55)
CIE-LCHlch(38.86, 69.47, 320.11°)
OKLaboklab(49.62% 0.1342 -0.125)
OKLCHoklch(49.62% 0.183 317)
XYZxyz(18.4998, 10.5766, 36.6570)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A34A5 #4FA534
analogous
#5234A5 #8A34A5 #A53487
triadic
#8A34A5 #A58A34 #34A58A
tetradic
#8A34A5 #A55234 #4FA534 #3487A5
square
#8A34A5 #A55234 #4FA534 #3487A5
split-complementary
#8A34A5 #87A534 #34A552
monochromatic
#3C1748 #632576 #8A34A5 #AB4FC7 #C17DD6

Accessibility & contrast

On white

6.74
#8A34A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A34A5
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A34A5#FFFFFF#000000##FFFFFF
##8A34A51.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A8
Deuteranopia (green-blind)
#365EA2
Tritanopia (blue-blind)
#894A68
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a34a5;
/* rgb */ color: rgb(138, 52, 165);
/* oklch */ color: oklch(49.6% 0.183 317.0);
Tailwind
colors: {
  custom: {
    50: '#b072c0',
    500: '#8a34a5',
    950: '#000000',
  },
}
SCSS
$custom: #8a34a5;
$custom-light: #b072c0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a34a5",
  "rgb": {
    "r": 138,
    "g": 52,
    "b": 165
  },
  "hsl": {
    "h": 285.664,
    "s": 52.074,
    "l": 42.549
  },
  "oklch": {
    "l": 0.49617,
    "c": 0.18342,
    "h": 317
  },
  "luminance": 0.10576
}

Semantic roles & 50–950 ramp

primary
#8A34A5
secondary
#87BF76
accent
#DC4C6F
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A34A5

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

Preview Lab → · Contrast checker → · Palette generator →

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