#8A32B2#8A32B2

#8A32B2 is a mid, vivid purple. Relative luminance 0.109; OKLCH L 50.3% C 0.198 H 313.0°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#8A32B2
RGBrgb(138, 50, 178)
HSLhsl(281, 56%, 45%)
HSVhsv(281, 72%, 70%)
CMYKcmyk(22.5%, 71.9%, 0%, 30.2%)
CIE-LABlab(39.41, 56.84, -51.40)
CIE-LCHlch(39.41, 76.64, 317.88°)
OKLaboklab(50.28% 0.1352 -0.1451)
OKLCHoklch(50.28% 0.198 313)
XYZxyz(19.6563, 10.8994, 43.1792)
Luminance0.1090 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A32B2 #5AB232
analogous
#4A32B2 #8A32B2 #B2329A
triadic
#8A32B2 #B28A32 #32B28A
tetradic
#8A32B2 #B24A32 #5AB232 #329AB2
square
#8A32B2 #B24A32 #5AB232 #329AB2
split-complementary
#8A32B2 #9AB232 #32B24A
monochromatic
#401752 #652582 #8A32B2 #A853CF #C082DC

Accessibility & contrast

On white

6.60
#8A32B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#8A32B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A32B2
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A32B2#FFFFFF#000000##FFFFFF
##8A32B21.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#265FAF
Tritanopia (blue-blind)
#864E6F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a32b2;
/* rgb */ color: rgb(138, 50, 178);
/* oklch */ color: oklch(50.3% 0.198 313.0);
Tailwind
colors: {
  custom: {
    50: '#b072ca',
    500: '#8a32b2',
    950: '#000000',
  },
}
SCSS
$custom: #8a32b2;
$custom-light: #b072ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a32b2",
  "rgb": {
    "r": 138,
    "g": 50,
    "b": 178
  },
  "hsl": {
    "h": 281.25,
    "s": 56.14,
    "l": 44.706
  },
  "oklch": {
    "l": 0.50283,
    "c": 0.19833,
    "h": 313
  },
  "luminance": 0.10899
}

Semantic roles & 50–950 ramp

primary
#8A32B2
secondary
#92C57B
accent
#DF4878
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A32B2

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

Preview Lab → · Contrast checker → · Palette generator →

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