#9E31B6#9E31B6

#9E31B6 is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.2% C 0.211 H 319.7°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#9E31B6
RGBrgb(158, 49, 182)
HSLhsl(289, 58%, 45%)
HSVhsv(289, 73%, 71%)
CMYKcmyk(13.2%, 73.1%, 0%, 28.6%)
CIE-LABlab(42.53, 62.17, -48.59)
CIE-LCHlch(42.53, 78.91, 321.99°)
OKLaboklab(53.19% 0.1606 -0.1362)
OKLCHoklch(53.19% 0.211 319.7)
XYZxyz(23.6413, 12.8443, 45.4808)
Luminance0.1284 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E31B6 #49B631
analogous
#5B31B6 #9E31B6 #B6318B
triadic
#9E31B6 #B69E31 #31B69E
tetradic
#9E31B6 #B65B31 #49B631 #318BB6
square
#9E31B6 #B65B31 #49B631 #318BB6
split-complementary
#9E31B6 #8BB631 #31B65B
monochromatic
#4A1756 #742486 #9E31B6 #BA53D1 #CE84DE

Accessibility & contrast

On white

5.88
#9E31B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#9E31B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E31B6
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E31B6#FFFFFF#000000##FFFFFF
##9E31B61.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBA
Deuteranopia (green-blind)
#3C68B3
Tritanopia (blue-blind)
#9E4B71
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9e31b6;
/* rgb */ color: rgb(158, 49, 182);
/* oklch */ color: oklch(53.2% 0.211 319.7);
Tailwind
colors: {
  custom: {
    50: '#bf74cc',
    500: '#9e31b6',
    950: '#000000',
  },
}
SCSS
$custom: #9e31b6;
$custom-light: #bf74cc;
$custom-dark: #000000;
JSON
{
  "hex": "#9e31b6",
  "rgb": {
    "r": 158,
    "g": 49,
    "b": 182
  },
  "hsl": {
    "h": 289.173,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.53191,
    "c": 0.21062,
    "h": 319.7
  },
  "luminance": 0.12843
}

Semantic roles & 50–950 ramp

primary
#9E31B6
secondary
#89C77C
accent
#E14763
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130913
muted
#827B82

Preview Lab

Preview with #9E31B6

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

Preview Lab → · Contrast checker → · Palette generator →

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