#9E31B7#9E31B7

#9E31B7 is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.3% C 0.211 H 319.4°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#9E31B7
RGBrgb(158, 49, 183)
HSLhsl(289, 58%, 45%)
HSVhsv(289, 73%, 72%)
CMYKcmyk(13.7%, 73.2%, 0%, 28.2%)
CIE-LABlab(42.59, 62.36, -49.08)
CIE-LCHlch(42.59, 79.36, 321.79°)
OKLaboklab(53.26% 0.1605 -0.1377)
OKLCHoklch(53.26% 0.211 319.4)
XYZxyz(23.7450, 12.8858, 46.0270)
Luminance0.1288 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E31B7 #4AB731
analogous
#5B31B7 #9E31B7 #B7318D
triadic
#9E31B7 #B79E31 #31B79E
tetradic
#9E31B7 #B75B31 #4AB731 #318DB7
square
#9E31B7 #B75B31 #4AB731 #318DB7
split-complementary
#9E31B7 #8DB731 #31B75B
monochromatic
#4B1756 #742487 #9E31B7 #BA54D1 #CD84DE

Accessibility & contrast

On white

5.87
#9E31B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#9E31B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E31B7
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E31B7#FFFFFF#000000##FFFFFF
##9E31B71.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBB
Deuteranopia (green-blind)
#3B68B4
Tritanopia (blue-blind)
#9E4C72
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9e31b7;
/* rgb */ color: rgb(158, 49, 183);
/* oklch */ color: oklch(53.3% 0.211 319.4);
Tailwind
colors: {
  custom: {
    50: '#bf74cd',
    500: '#9e31b7',
    950: '#000000',
  },
}
SCSS
$custom: #9e31b7;
$custom-light: #bf74cd;
$custom-dark: #000000;
JSON
{
  "hex": "#9e31b7",
  "rgb": {
    "r": 158,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 288.806,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.53256,
    "c": 0.21148,
    "h": 319.4
  },
  "luminance": 0.12885
}

Semantic roles & 50–950 ramp

primary
#9E31B7
secondary
#8AC87C
accent
#E14764
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130913
muted
#827B82

Preview Lab

Preview with #9E31B7

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

Preview Lab → · Contrast checker → · Palette generator →

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