#9E31B0#9E31B0

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

Color values

HEX#9E31B0
RGBrgb(158, 49, 176)
HSLhsl(291, 56%, 44%)
HSVhsv(291, 72%, 69%)
CMYKcmyk(10.2%, 72.2%, 0%, 31%)
CIE-LABlab(42.16, 61.06, -45.65)
CIE-LCHlch(42.16, 76.23, 323.22°)
OKLaboklab(52.81% 0.161 -0.1276)
OKLCHoklch(52.81% 0.205 321.6)
XYZxyz(23.0345, 12.6016, 42.2849)
Luminance0.1260 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E31B0 #43B031
analogous
#5F31B0 #9E31B0 #B03183
triadic
#9E31B0 #B09E31 #31B09E
tetradic
#9E31B0 #B05F31 #43B031 #3183B0
square
#9E31B0 #B05F31 #43B031 #3183B0
split-complementary
#9E31B0 #83B031 #31B05F
monochromatic
#481650 #732480 #9E31B0 #BC50CE #CF80DC

Accessibility & contrast

On white

5.97
#9E31B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#9E31B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E31B0
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E31B0#FFFFFF#000000##FFFFFF
##9E31B01.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB4
Deuteranopia (green-blind)
#4167AD
Tritanopia (blue-blind)
#A0496E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9e31b0;
/* rgb */ color: rgb(158, 49, 176);
/* oklch */ color: oklch(52.8% 0.205 321.6);
Tailwind
colors: {
  custom: {
    50: '#be74c8',
    500: '#9e31b0',
    950: '#000000',
  },
}
SCSS
$custom: #9e31b0;
$custom-light: #be74c8;
$custom-dark: #000000;
JSON
{
  "hex": "#9e31b0",
  "rgb": {
    "r": 158,
    "g": 49,
    "b": 176
  },
  "hsl": {
    "h": 291.496,
    "s": 56.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.52808,
    "c": 0.20547,
    "h": 321.6
  },
  "luminance": 0.126
}

Semantic roles & 50–950 ramp

primary
#9E31B0
secondary
#83C578
accent
#E0485E
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #9E31B0

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

Preview Lab → · Contrast checker → · Palette generator →

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