#8A32B1#8A32B1

#8A32B1 is a mid, vivid purple. Relative luminance 0.109; OKLCH L 50.2% C 0.197 H 313.3°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#8A32B1
RGBrgb(138, 50, 177)
HSLhsl(282, 56%, 45%)
HSVhsv(282, 72%, 69%)
CMYKcmyk(22%, 71.8%, 0%, 30.6%)
CIE-LABlab(39.34, 56.63, -50.92)
CIE-LCHlch(39.34, 76.16, 318.04°)
OKLaboklab(50.21% 0.1353 -0.1437)
OKLCHoklch(50.21% 0.197 313.3)
XYZxyz(19.5563, 10.8594, 42.6524)
Luminance0.1086 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A32B1 #59B132
analogous
#4B32B1 #8A32B1 #B13299
triadic
#8A32B1 #B18A32 #32B18A
tetradic
#8A32B1 #B14B32 #59B132 #3299B1
square
#8A32B1 #B14B32 #59B132 #3299B1
split-complementary
#8A32B1 #99B132 #32B14B
monochromatic
#401752 #652581 #8A32B1 #A852CE #C082DC

Accessibility & contrast

On white

6.62
#8A32B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#8A32B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A32B1
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A32B1#FFFFFF#000000##FFFFFF
##8A32B11.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B5
Deuteranopia (green-blind)
#275FAE
Tritanopia (blue-blind)
#864D6E
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a32b1;
/* rgb */ color: rgb(138, 50, 177);
/* oklch */ color: oklch(50.2% 0.197 313.3);
Tailwind
colors: {
  custom: {
    50: '#b072c9',
    500: '#8a32b1',
    950: '#000000',
  },
}
SCSS
$custom: #8a32b1;
$custom-light: #b072c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a32b1",
  "rgb": {
    "r": 138,
    "g": 50,
    "b": 177
  },
  "hsl": {
    "h": 281.575,
    "s": 55.947,
    "l": 44.51
  },
  "oklch": {
    "l": 0.50213,
    "c": 0.19738,
    "h": 313.3
  },
  "luminance": 0.10859
}

Semantic roles & 50–950 ramp

primary
#8A32B1
secondary
#91C57A
accent
#DF4977
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A32B1

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

Preview Lab → · Contrast checker → · Palette generator →

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