#9E31AF#9E31AF

#9E31AF is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 52.7% C 0.205 H 321.9°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#9E31AF
RGBrgb(158, 49, 175)
HSLhsl(292, 56%, 44%)
HSVhsv(292, 72%, 69%)
CMYKcmyk(9.7%, 72%, 0%, 31.4%)
CIE-LABlab(42.10, 60.87, -45.15)
CIE-LCHlch(42.10, 75.79, 323.44°)
OKLaboklab(52.75% 0.1611 -0.1262)
OKLCHoklch(52.75% 0.205 321.9)
XYZxyz(22.9359, 12.5621, 41.7658)
Luminance0.1256 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E31AF #42AF31
analogous
#5F31AF #9E31AF #AF3181
triadic
#9E31AF #AF9E31 #31AF9E
tetradic
#9E31AF #AF5F31 #42AF31 #3181AF
square
#9E31AF #AF5F31 #42AF31 #3181AF
split-complementary
#9E31AF #81AF31 #31AF5F
monochromatic
#48164F #73247F #9E31AF #BD4FCE #CF7FDB

Accessibility & contrast

On white

5.98
#9E31AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#9E31AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E31AF
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E31AF#FFFFFF#000000##FFFFFF
##9E31AF1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB3
Deuteranopia (green-blind)
#4267AC
Tritanopia (blue-blind)
#A0486D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9e31af;
/* rgb */ color: rgb(158, 49, 175);
/* oklch */ color: oklch(52.7% 0.205 321.9);
Tailwind
colors: {
  custom: {
    50: '#be74c7',
    500: '#9e31af',
    950: '#000000',
  },
}
SCSS
$custom: #9e31af;
$custom-light: #be74c7;
$custom-dark: #000000;
JSON
{
  "hex": "#9e31af",
  "rgb": {
    "r": 158,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 291.905,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.52745,
    "c": 0.20462,
    "h": 321.9
  },
  "luminance": 0.12561
}

Semantic roles & 50–950 ramp

primary
#9E31AF
secondary
#82C478
accent
#E0485D
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #9E31AF

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

Preview Lab → · Contrast checker → · Palette generator →

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