#9E31AE#9E31AE

#9E31AE is a mid, highly saturated purple. Relative luminance 0.125; OKLCH L 52.7% C 0.204 H 322.3°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#9E31AE
RGBrgb(158, 49, 174)
HSLhsl(292, 56%, 44%)
HSVhsv(292, 72%, 68%)
CMYKcmyk(9.2%, 71.8%, 0%, 31.8%)
CIE-LABlab(42.04, 60.69, -44.66)
CIE-LCHlch(42.04, 75.35, 323.66°)
OKLaboklab(52.68% 0.1611 -0.1247)
OKLCHoklch(52.68% 0.204 322.3)
XYZxyz(22.8381, 12.5230, 41.2504)
Luminance0.1252 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E31AE #41AE31
analogous
#5F31AE #9E31AE #AE317F
triadic
#9E31AE #AE9E31 #31AE9E
tetradic
#9E31AE #AE5F31 #41AE31 #317FAE
square
#9E31AE #AE5F31 #41AE31 #317FAE
split-complementary
#9E31AE #7FAE31 #31AE5F
monochromatic
#47164E #73247E #9E31AE #BD4FCD #CF7FDB

Accessibility & contrast

On white

5.99
#9E31AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9E31AE
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E31AE#FFFFFF#000000##FFFFFF
##9E31AE1.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB2
Deuteranopia (green-blind)
#4367AB
Tritanopia (blue-blind)
#A0486D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9e31ae;
/* rgb */ color: rgb(158, 49, 174);
/* oklch */ color: oklch(52.7% 0.204 322.3);
Tailwind
colors: {
  custom: {
    50: '#be74c7',
    500: '#9e31ae',
    950: '#000000',
  },
}
SCSS
$custom: #9e31ae;
$custom-light: #be74c7;
$custom-dark: #000000;
JSON
{
  "hex": "#9e31ae",
  "rgb": {
    "r": 158,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 292.32,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.52683,
    "c": 0.20377,
    "h": 322.3
  },
  "luminance": 0.12522
}

Semantic roles & 50–950 ramp

primary
#9E31AE
secondary
#81C477
accent
#DF485C
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #9E31AE

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

Preview Lab → · Contrast checker → · Palette generator →

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