#8A34A2#8A34A2

#8A34A2 is a mid, vivid purple. Relative luminance 0.105; OKLCH L 49.4% C 0.181 H 318.1°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#8A34A2
RGBrgb(138, 52, 162)
HSLhsl(287, 51%, 42%)
HSVhsv(287, 68%, 64%)
CMYKcmyk(14.8%, 67.9%, 0%, 36.5%)
CIE-LABlab(38.67, 52.70, -43.05)
CIE-LCHlch(38.67, 68.05, 320.75°)
OKLaboklab(49.42% 0.1343 -0.1207)
OKLCHoklch(49.42% 0.181 318.1)
XYZxyz(18.2299, 10.4687, 35.2358)
Luminance0.1047 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A34A2 #4CA234
analogous
#5334A2 #8A34A2 #A23483
triadic
#8A34A2 #A28A34 #34A28A
tetradic
#8A34A2 #A25334 #4CA234 #3483A2
square
#8A34A2 #A25334 #4CA234 #3483A2
split-complementary
#8A34A2 #83A234 #34A253
monochromatic
#3B1645 #632574 #8A34A2 #AC4DC6 #C17CD5

Accessibility & contrast

On white

6.79
#8A34A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#8A34A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A34A2
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A34A2#FFFFFF#000000##FFFFFF
##8A34A21.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0356A5
Deuteranopia (green-blind)
#395E9F
Tritanopia (blue-blind)
#894867
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a34a2;
/* rgb */ color: rgb(138, 52, 162);
/* oklch */ color: oklch(49.4% 0.181 318.1);
Tailwind
colors: {
  custom: {
    50: '#af72be',
    500: '#8a34a2',
    950: '#000000',
  },
}
SCSS
$custom: #8a34a2;
$custom-light: #af72be;
$custom-dark: #000000;
JSON
{
  "hex": "#8a34a2",
  "rgb": {
    "r": 138,
    "g": 52,
    "b": 162
  },
  "hsl": {
    "h": 286.909,
    "s": 51.402,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49422,
    "c": 0.18057,
    "h": 318.1
  },
  "luminance": 0.10468
}

Semantic roles & 50–950 ramp

primary
#8A34A2
secondary
#84BE74
accent
#DB4D6C
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A34A2

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

Preview Lab → · Contrast checker → · Palette generator →

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