#8A32A2#8A32A2

#8A32A2 is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.2% C 0.183 H 318.2°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#8A32A2
RGBrgb(138, 50, 162)
HSLhsl(287, 53%, 42%)
HSVhsv(287, 69%, 64%)
CMYKcmyk(14.8%, 69.1%, 0%, 36.5%)
CIE-LABlab(38.36, 53.56, -43.54)
CIE-LCHlch(38.36, 69.02, 320.89°)
OKLaboklab(49.2% 0.1366 -0.1221)
OKLCHoklch(49.2% 0.183 318.2)
XYZxyz(18.1425, 10.2939, 35.2067)
Luminance0.1029 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A32A2 #4AA232
analogous
#5232A2 #8A32A2 #A23282
triadic
#8A32A2 #A28A32 #32A28A
tetradic
#8A32A2 #A25232 #4AA232 #3282A2
square
#8A32A2 #A25232 #4AA232 #3282A2
split-complementary
#8A32A2 #82A232 #32A252
monochromatic
#3A1544 #622473 #8A32A2 #AC4AC7 #C279D6

Accessibility & contrast

On white

6.87
#8A32A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#8A32A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A32A2
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A32A2#FFFFFF#000000##FFFFFF
##8A32A21.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A5
Deuteranopia (green-blind)
#375D9F
Tritanopia (blue-blind)
#894766
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a32a2;
/* rgb */ color: rgb(138, 50, 162);
/* oklch */ color: oklch(49.2% 0.183 318.2);
Tailwind
colors: {
  custom: {
    50: '#af71be',
    500: '#8a32a2',
    950: '#000000',
  },
}
SCSS
$custom: #8a32a2;
$custom-light: #af71be;
$custom-dark: #000000;
JSON
{
  "hex": "#8a32a2",
  "rgb": {
    "r": 138,
    "g": 50,
    "b": 162
  },
  "hsl": {
    "h": 287.143,
    "s": 52.83,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49203,
    "c": 0.18319,
    "h": 318.2
  },
  "luminance": 0.10293
}

Semantic roles & 50–950 ramp

primary
#8A32A2
secondary
#82BE72
accent
#DC4C6B
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A32A2

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

Preview Lab → · Contrast checker → · Palette generator →

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