#8A34A1#8A34A1

#8A34A1 is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.4% C 0.180 H 318.4°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#8A34A1
RGBrgb(138, 52, 161)
HSLhsl(287, 51%, 42%)
HSVhsv(287, 68%, 63%)
CMYKcmyk(14.3%, 67.7%, 0%, 36.9%)
CIE-LABlab(38.61, 52.50, -42.55)
CIE-LCHlch(38.61, 67.58, 320.98°)
OKLaboklab(49.36% 0.1344 -0.1192)
OKLCHoklch(49.36% 0.18 318.4)
XYZxyz(18.1414, 10.4333, 34.7695)
Luminance0.1043 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A34A1 #4BA134
analogous
#5334A1 #8A34A1 #A13482
triadic
#8A34A1 #A18A34 #34A18A
tetradic
#8A34A1 #A15334 #4BA134 #3482A1
square
#8A34A1 #A15334 #4BA134 #3482A1
split-complementary
#8A34A1 #82A134 #34A153
monochromatic
#3B1644 #622573 #8A34A1 #AC4DC5 #C27BD4

Accessibility & contrast

On white

6.80
#8A34A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A34A1
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A34A1#FFFFFF#000000##FFFFFF
##8A34A11.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0655A4
Deuteranopia (green-blind)
#3A5E9E
Tritanopia (blue-blind)
#8A4866
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a34a1;
/* rgb */ color: rgb(138, 52, 161);
/* oklch */ color: oklch(49.4% 0.180 318.4);
Tailwind
colors: {
  custom: {
    50: '#af72bd',
    500: '#8a34a1',
    950: '#000000',
  },
}
SCSS
$custom: #8a34a1;
$custom-light: #af72bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a34a1",
  "rgb": {
    "r": 138,
    "g": 52,
    "b": 161
  },
  "hsl": {
    "h": 287.339,
    "s": 51.174,
    "l": 41.765
  },
  "oklch": {
    "l": 0.49358,
    "c": 0.17962,
    "h": 318.4
  },
  "luminance": 0.10432
}

Semantic roles & 50–950 ramp

primary
#8A34A1
secondary
#83BD74
accent
#DB4D6B
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A34A1

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

Preview Lab → · Contrast checker → · Palette generator →

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