#8A34A3#8A34A3

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

Color values

HEX#8A34A3
RGBrgb(138, 52, 163)
HSLhsl(286, 52%, 42%)
HSVhsv(286, 68%, 64%)
CMYKcmyk(15.3%, 68.1%, 0%, 36.1%)
CIE-LABlab(38.73, 52.90, -43.55)
CIE-LCHlch(38.73, 68.52, 320.54°)
OKLaboklab(49.49% 0.1343 -0.1221)
OKLCHoklch(49.49% 0.182 317.7)
XYZxyz(18.3191, 10.5044, 35.7058)
Luminance0.1050 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A34A3 #4DA334
analogous
#5234A3 #8A34A3 #A33485
triadic
#8A34A3 #A38A34 #34A38A
tetradic
#8A34A3 #A35234 #4DA334 #3485A3
square
#8A34A3 #A35234 #4DA334 #3485A3
split-complementary
#8A34A3 #85A334 #34A352
monochromatic
#3B1646 #632575 #8A34A3 #AB4EC6 #C17CD5

Accessibility & contrast

On white

6.77
#8A34A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#8A34A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A34A3
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A34A3#FFFFFF#000000##FFFFFF
##8A34A31.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A6
Deuteranopia (green-blind)
#385EA0
Tritanopia (blue-blind)
#894967
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a34a3;
/* rgb */ color: rgb(138, 52, 163);
/* oklch */ color: oklch(49.5% 0.182 317.7);
Tailwind
colors: {
  custom: {
    50: '#af72bf',
    500: '#8a34a3',
    950: '#000000',
  },
}
SCSS
$custom: #8a34a3;
$custom-light: #af72bf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a34a3",
  "rgb": {
    "r": 138,
    "g": 52,
    "b": 163
  },
  "hsl": {
    "h": 286.486,
    "s": 51.628,
    "l": 42.157
  },
  "oklch": {
    "l": 0.49487,
    "c": 0.18152,
    "h": 317.7
  },
  "luminance": 0.10504
}

Semantic roles & 50–950 ramp

primary
#8A34A3
secondary
#85BE75
accent
#DB4D6D
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A34A3

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

Preview Lab → · Contrast checker → · Palette generator →

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