#9E31B2#9E31B2

#9E31B2 is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 52.9% C 0.207 H 321.0°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#9E31B2
RGBrgb(158, 49, 178)
HSLhsl(291, 57%, 45%)
HSVhsv(291, 72%, 70%)
CMYKcmyk(11.2%, 72.5%, 0%, 30.2%)
CIE-LABlab(42.28, 61.43, -46.63)
CIE-LCHlch(42.28, 77.12, 322.80°)
OKLaboklab(52.94% 0.1609 -0.1305)
OKLCHoklch(52.94% 0.207 321)
XYZxyz(23.2338, 12.6813, 43.3348)
Luminance0.1268 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E31B2 #45B231
analogous
#5E31B2 #9E31B2 #B23185
triadic
#9E31B2 #B29E31 #31B29E
tetradic
#9E31B2 #B25E31 #45B231 #3185B2
square
#9E31B2 #B25E31 #45B231 #3185B2
split-complementary
#9E31B2 #85B231 #31B25E
monochromatic
#491752 #732482 #9E31B2 #BC51CF #CE81DC

Accessibility & contrast

On white

5.94
#9E31B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#9E31B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E31B2
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E31B2#FFFFFF#000000##FFFFFF
##9E31B21.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB6
Deuteranopia (green-blind)
#4068AF
Tritanopia (blue-blind)
#9F496F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9e31b2;
/* rgb */ color: rgb(158, 49, 178);
/* oklch */ color: oklch(52.9% 0.207 321.0);
Tailwind
colors: {
  custom: {
    50: '#be74ca',
    500: '#9e31b2',
    950: '#000000',
  },
}
SCSS
$custom: #9e31b2;
$custom-light: #be74ca;
$custom-dark: #000000;
JSON
{
  "hex": "#9e31b2",
  "rgb": {
    "r": 158,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 290.698,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.52935,
    "c": 0.20718,
    "h": 321
  },
  "luminance": 0.1268
}

Semantic roles & 50–950 ramp

primary
#9E31B2
secondary
#85C579
accent
#E0485F
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #9E31B2

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

Preview Lab → · Contrast checker → · Palette generator →

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