#9B31B1#9B31B1

#9B31B1 is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.4% C 0.205 H 320.1°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#9B31B1
RGBrgb(155, 49, 177)
HSLhsl(290, 57%, 44%)
HSVhsv(290, 72%, 69%)
CMYKcmyk(12.4%, 72.3%, 0%, 30.6%)
CIE-LABlab(41.75, 60.60, -46.91)
CIE-LCHlch(41.75, 76.64, 322.26°)
OKLaboklab(52.45% 0.1574 -0.1314)
OKLCHoklch(52.45% 0.205 320.1)
XYZxyz(22.5507, 12.3407, 42.7806)
Luminance0.1234 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B31B1 #47B131
analogous
#5B31B1 #9B31B1 #B13187
triadic
#9B31B1 #B19B31 #31B19B
tetradic
#9B31B1 #B15B31 #47B131 #3187B1
square
#9B31B1 #B15B31 #47B131 #3187B1
split-complementary
#9B31B1 #87B131 #31B15B
monochromatic
#471651 #712481 #9B31B1 #B951CF #CC80DC

Accessibility & contrast

On white

6.06
#9B31B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#9B31B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B31B1
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B31B1#FFFFFF#000000##FFFFFF
##9B31B11.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB5
Deuteranopia (green-blind)
#3D66AE
Tritanopia (blue-blind)
#9C4A6E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9b31b1;
/* rgb */ color: rgb(155, 49, 177);
/* oklch */ color: oklch(52.4% 0.205 320.1);
Tailwind
colors: {
  custom: {
    50: '#bc73c9',
    500: '#9b31b1',
    950: '#000000',
  },
}
SCSS
$custom: #9b31b1;
$custom-light: #bc73c9;
$custom-dark: #000000;
JSON
{
  "hex": "#9b31b1",
  "rgb": {
    "r": 155,
    "g": 49,
    "b": 177
  },
  "hsl": {
    "h": 289.688,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.52447,
    "c": 0.20506,
    "h": 320.1
  },
  "luminance": 0.1234
}

Semantic roles & 50–950 ramp

primary
#9B31B1
secondary
#86C579
accent
#E04862
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9B31B1

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

Preview Lab → · Contrast checker → · Palette generator →

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