#9E31C2#9E31C2

#9E31C2 is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 54.0% C 0.221 H 316.1°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#9E31C2
RGBrgb(158, 49, 194)
HSLhsl(285, 60%, 48%)
HSVhsv(285, 75%, 76%)
CMYKcmyk(18.6%, 74.7%, 0%, 23.9%)
CIE-LABlab(43.30, 64.46, -54.38)
CIE-LCHlch(43.30, 84.34, 319.85°)
OKLaboklab(53.99% 0.1593 -0.1532)
OKLCHoklch(53.99% 0.221 316.1)
XYZxyz(24.9350, 13.3618, 52.2941)
Luminance0.1336 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E31C2 #55C231
analogous
#5531C2 #9E31C2 #C2319E
triadic
#9E31C2 #C29E31 #31C29E
tetradic
#9E31C2 #C25531 #55C231 #319EC2
square
#9E31C2 #C25531 #55C231 #319EC2
split-complementary
#9E31C2 #9EC231 #31C255
monochromatic
#4E1860 #762591 #9E31C2 #B75BD6 #CC8CE2

Accessibility & contrast

On white

5.72
#9E31C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#9E31C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E31C2
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E31C2#FFFFFF#000000##FFFFFF
##9E31C21.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C6
Deuteranopia (green-blind)
#3069BF
Tritanopia (blue-blind)
#9C5178
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9e31c2;
/* rgb */ color: rgb(158, 49, 194);
/* oklch */ color: oklch(54.0% 0.221 316.1);
Tailwind
colors: {
  custom: {
    50: '#bf74d5',
    500: '#9e31c2',
    950: '#000000',
  },
}
SCSS
$custom: #9e31c2;
$custom-light: #bf74d5;
$custom-dark: #000000;
JSON
{
  "hex": "#9e31c2",
  "rgb": {
    "r": 158,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 285.103,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.53989,
    "c": 0.22103,
    "h": 316.1
  },
  "luminance": 0.13361
}

Semantic roles & 50–950 ramp

primary
#9E31C2
secondary
#95CC83
accent
#E3456C
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#130914
muted
#827B83

Preview Lab

Preview with #9E31C2

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

Preview Lab → · Contrast checker → · Palette generator →

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