#9E31AD#9E31AD

#9E31AD is a mid, highly saturated purple. Relative luminance 0.125; OKLCH L 52.6% C 0.203 H 322.6°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#9E31AD
RGBrgb(158, 49, 173)
HSLhsl(293, 56%, 44%)
HSVhsv(293, 72%, 68%)
CMYKcmyk(8.7%, 71.7%, 0%, 32.2%)
CIE-LABlab(41.98, 60.51, -44.16)
CIE-LCHlch(41.98, 74.91, 323.88°)
OKLaboklab(52.62% 0.1612 -0.1233)
OKLCHoklch(52.62% 0.203 322.6)
XYZxyz(22.7409, 12.4842, 40.7389)
Luminance0.1248 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E31AD #40AD31
analogous
#6031AD #9E31AD #AD317E
triadic
#9E31AD #AD9E31 #31AD9E
tetradic
#9E31AD #AD6031 #40AD31 #317EAD
square
#9E31AD #AD6031 #40AD31 #317EAD
split-complementary
#9E31AD #7EAD31 #31AD60
monochromatic
#47164E #72237D #9E31AD #BE4ECD #CF7EDA

Accessibility & contrast

On white

6.01
#9E31AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#9E31AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E31AD
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E31AD#FFFFFF#000000##FFFFFF
##9E31AD1.006.013.506.01
#FFFFFF6.011.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB0
Deuteranopia (green-blind)
#4367AA
Tritanopia (blue-blind)
#A0476C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9e31ad;
/* rgb */ color: rgb(158, 49, 173);
/* oklch */ color: oklch(52.6% 0.203 322.6);
Tailwind
colors: {
  custom: {
    50: '#be74c6',
    500: '#9e31ad',
    950: '#000000',
  },
}
SCSS
$custom: #9e31ad;
$custom-light: #be74c6;
$custom-dark: #000000;
JSON
{
  "hex": "#9e31ad",
  "rgb": {
    "r": 158,
    "g": 49,
    "b": 173
  },
  "hsl": {
    "h": 292.742,
    "s": 55.856,
    "l": 43.529
  },
  "oklch": {
    "l": 0.52621,
    "c": 0.20292,
    "h": 322.6
  },
  "luminance": 0.12483
}

Semantic roles & 50–950 ramp

primary
#9E31AD
secondary
#80C377
accent
#DF495B
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #9E31AD

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

Preview Lab → · Contrast checker → · Palette generator →

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