#9E31AA#9E31AA

#9E31AA is a mid, highly saturated purple. Relative luminance 0.124; OKLCH L 52.4% C 0.200 H 323.6°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#9E31AA
RGBrgb(158, 49, 170)
HSLhsl(294, 55%, 43%)
HSVhsv(294, 71%, 67%)
CMYKcmyk(7.1%, 71.2%, 0%, 33.3%)
CIE-LABlab(41.80, 59.97, -42.66)
CIE-LCHlch(41.80, 73.59, 324.57°)
OKLaboklab(52.44% 0.1613 -0.1189)
OKLCHoklch(52.44% 0.2 323.6)
XYZxyz(22.4539, 12.3693, 39.2272)
Luminance0.1237 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E31AA #3DAA31
analogous
#6231AA #9E31AA #AA3179
triadic
#9E31AA #AA9E31 #31AA9E
tetradic
#9E31AA #AA6231 #3DAA31 #3179AA
square
#9E31AA #AA6231 #3DAA31 #3179AA
split-complementary
#9E31AA #79AA31 #31AA62
monochromatic
#46164B #72237A #9E31AA #BF4DCC #D07CD9

Accessibility & contrast

On white

6.05
#9E31AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#9E31AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E31AA
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E31AA#FFFFFF#000000##FFFFFF
##9E31AA1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#075AAD
Deuteranopia (green-blind)
#4667A7
Tritanopia (blue-blind)
#A1466A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9e31aa;
/* rgb */ color: rgb(158, 49, 170);
/* oklch */ color: oklch(52.4% 0.200 323.6);
Tailwind
colors: {
  custom: {
    50: '#be73c4',
    500: '#9e31aa',
    950: '#000000',
  },
}
SCSS
$custom: #9e31aa;
$custom-light: #be73c4;
$custom-dark: #000000;
JSON
{
  "hex": "#9e31aa",
  "rgb": {
    "r": 158,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 294.05,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.52436,
    "c": 0.20039,
    "h": 323.6
  },
  "luminance": 0.12368
}

Semantic roles & 50–950 ramp

primary
#9E31AA
secondary
#7DC275
accent
#DF4958
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #9E31AA

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

Preview Lab → · Contrast checker → · Palette generator →

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