#9A31AA#9A31AA

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

Color values

HEX#9A31AA
RGBrgb(154, 49, 170)
HSLhsl(292, 55%, 43%)
HSVhsv(292, 71%, 67%)
CMYKcmyk(9.4%, 71.2%, 0%, 33.3%)
CIE-LABlab(41.17, 59.08, -43.70)
CIE-LCHlch(41.17, 73.49, 323.51°)
OKLaboklab(51.86% 0.1566 -0.1221)
OKLCHoklch(51.86% 0.199 322.1)
XYZxyz(21.6797, 11.9701, 39.1910)
Luminance0.1197 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A31AA #41AA31
analogous
#5D31AA #9A31AA #AA317D
triadic
#9A31AA #AA9A31 #31AA9A
tetradic
#9A31AA #AA5D31 #41AA31 #317DAA
square
#9A31AA #AA5D31 #41AA31 #317DAA
split-complementary
#9A31AA #7DAA31 #31AA5D
monochromatic
#44164B #6F237A #9A31AA #BB4DCC #CD7CD9

Accessibility & contrast

On white

6.19
#9A31AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#9A31AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A31AA
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A31AA#FFFFFF#000000##FFFFFF
##9A31AA1.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AD
Deuteranopia (green-blind)
#4165A7
Tritanopia (blue-blind)
#9C476A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9a31aa;
/* rgb */ color: rgb(154, 49, 170);
/* oklch */ color: oklch(51.9% 0.199 322.1);
Tailwind
colors: {
  custom: {
    50: '#bb73c4',
    500: '#9a31aa',
    950: '#000000',
  },
}
SCSS
$custom: #9a31aa;
$custom-light: #bb73c4;
$custom-dark: #000000;
JSON
{
  "hex": "#9a31aa",
  "rgb": {
    "r": 154,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 292.066,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.51862,
    "c": 0.19858,
    "h": 322.1
  },
  "luminance": 0.11969
}

Semantic roles & 50–950 ramp

primary
#9A31AA
secondary
#7FC275
accent
#DF495D
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9A31AA

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

Preview Lab → · Contrast checker → · Palette generator →

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