#9A31AB#9A31AB

#9A31AB is a mid, vivid purple. Relative luminance 0.120; OKLCH L 51.9% C 0.199 H 321.7°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#9A31AB
RGBrgb(154, 49, 171)
HSLhsl(292, 55%, 43%)
HSVhsv(292, 71%, 67%)
CMYKcmyk(9.9%, 71.3%, 0%, 32.9%)
CIE-LABlab(41.23, 59.27, -44.20)
CIE-LCHlch(41.23, 73.93, 323.29°)
OKLaboklab(51.92% 0.1566 -0.1235)
OKLCHoklch(51.92% 0.199 321.7)
XYZxyz(21.7746, 12.0081, 39.6910)
Luminance0.1201 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A31AB #42AB31
analogous
#5D31AB #9A31AB #AB317F
triadic
#9A31AB #AB9A31 #31AB9A
tetradic
#9A31AB #AB5D31 #42AB31 #317FAB
square
#9A31AB #AB5D31 #42AB31 #317FAB
split-complementary
#9A31AB #7FAB31 #31AB5D
monochromatic
#44164C #6F237B #9A31AB #BA4DCC #CD7DDA

Accessibility & contrast

On white

6.17
#9A31AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#9A31AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A31AB
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A31AB#FFFFFF#000000##FFFFFF
##9A31AB1.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AAE
Deuteranopia (green-blind)
#4165A8
Tritanopia (blue-blind)
#9C476B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9a31ab;
/* rgb */ color: rgb(154, 49, 171);
/* oklch */ color: oklch(51.9% 0.199 321.7);
Tailwind
colors: {
  custom: {
    50: '#bb73c4',
    500: '#9a31ab',
    950: '#000000',
  },
}
SCSS
$custom: #9a31ab;
$custom-light: #bb73c4;
$custom-dark: #000000;
JSON
{
  "hex": "#9a31ab",
  "rgb": {
    "r": 154,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 291.639,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.51924,
    "c": 0.19944,
    "h": 321.7
  },
  "luminance": 0.12007
}

Semantic roles & 50–950 ramp

primary
#9A31AB
secondary
#80C275
accent
#DF495E
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9A31AB

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

Preview Lab → · Contrast checker → · Palette generator →

#9A31AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva