#9E31B1#9E31B1

#9E31B1 is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 52.9% C 0.206 H 321.3°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#9E31B1
RGBrgb(158, 49, 177)
HSLhsl(291, 57%, 44%)
HSVhsv(291, 72%, 69%)
CMYKcmyk(10.7%, 72.3%, 0%, 30.6%)
CIE-LABlab(42.22, 61.24, -46.14)
CIE-LCHlch(42.22, 76.68, 323.01°)
OKLaboklab(52.87% 0.161 -0.1291)
OKLCHoklch(52.87% 0.206 321.3)
XYZxyz(23.1338, 12.6413, 42.8079)
Luminance0.1264 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E31B1 #44B131
analogous
#5E31B1 #9E31B1 #B13184
triadic
#9E31B1 #B19E31 #31B19E
tetradic
#9E31B1 #B15E31 #44B131 #3184B1
square
#9E31B1 #B15E31 #44B131 #3184B1
split-complementary
#9E31B1 #84B131 #31B15E
monochromatic
#481651 #732481 #9E31B1 #BC51CF #CE80DC

Accessibility & contrast

On white

5.95
#9E31B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#9E31B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E31B1
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E31B1#FFFFFF#000000##FFFFFF
##9E31B11.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB5
Deuteranopia (green-blind)
#4068AE
Tritanopia (blue-blind)
#9F496E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9e31b1;
/* rgb */ color: rgb(158, 49, 177);
/* oklch */ color: oklch(52.9% 0.206 321.3);
Tailwind
colors: {
  custom: {
    50: '#be74c9',
    500: '#9e31b1',
    950: '#000000',
  },
}
SCSS
$custom: #9e31b1;
$custom-light: #be74c9;
$custom-dark: #000000;
JSON
{
  "hex": "#9e31b1",
  "rgb": {
    "r": 158,
    "g": 49,
    "b": 177
  },
  "hsl": {
    "h": 291.094,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.52871,
    "c": 0.20633,
    "h": 321.3
  },
  "luminance": 0.1264
}

Semantic roles & 50–950 ramp

primary
#9E31B1
secondary
#84C579
accent
#E0485E
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #9E31B1

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

Preview Lab → · Contrast checker → · Palette generator →

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