#9B31AB#9B31AB

#9B31AB is a mid, vivid purple. Relative luminance 0.121; OKLCH L 52.1% C 0.200 H 322.1°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#9B31AB
RGBrgb(155, 49, 171)
HSLhsl(292, 55%, 43%)
HSVhsv(292, 71%, 67%)
CMYKcmyk(9.4%, 71.3%, 0%, 32.9%)
CIE-LABlab(41.39, 59.49, -43.94)
CIE-LCHlch(41.39, 73.96, 323.55°)
OKLaboklab(52.07% 0.1578 -0.1227)
OKLCHoklch(52.07% 0.2 322.1)
XYZxyz(21.9658, 12.1067, 39.7000)
Luminance0.1211 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B31AB #41AB31
analogous
#5E31AB #9B31AB #AB317E
triadic
#9B31AB #AB9B31 #31AB9B
tetradic
#9B31AB #AB5E31 #41AB31 #317EAB
square
#9B31AB #AB5E31 #41AB31 #317EAB
split-complementary
#9B31AB #7EAB31 #31AB5E
monochromatic
#45164C #70237B #9B31AB #BB4DCC #CD7DDA

Accessibility & contrast

On white

6.14
#9B31AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#9B31AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B31AB
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B31AB#FFFFFF#000000##FFFFFF
##9B31AB1.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AAE
Deuteranopia (green-blind)
#4266A8
Tritanopia (blue-blind)
#9D476B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9b31ab;
/* rgb */ color: rgb(155, 49, 171);
/* oklch */ color: oklch(52.1% 0.200 322.1);
Tailwind
colors: {
  custom: {
    50: '#bc73c4',
    500: '#9b31ab',
    950: '#000000',
  },
}
SCSS
$custom: #9b31ab;
$custom-light: #bc73c4;
$custom-dark: #000000;
JSON
{
  "hex": "#9b31ab",
  "rgb": {
    "r": 155,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 292.131,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.52067,
    "c": 0.19989,
    "h": 322.1
  },
  "luminance": 0.12105
}

Semantic roles & 50–950 ramp

primary
#9B31AB
secondary
#80C275
accent
#DF495D
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9B31AB

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

Preview Lab → · Contrast checker → · Palette generator →

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