#9B31BC#9B31BC

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

Color values

HEX#9B31BC
RGBrgb(155, 49, 188)
HSLhsl(286, 59%, 46%)
HSVhsv(286, 74%, 74%)
CMYKcmyk(17.6%, 73.9%, 0%, 26.3%)
CIE-LABlab(42.46, 62.71, -52.26)
CIE-LCHlch(42.46, 81.63, 320.19°)
OKLaboklab(53.17% 0.1564 -0.1471)
OKLCHoklch(53.17% 0.215 316.8)
XYZxyz(23.6916, 12.7970, 48.7893)
Luminance0.1280 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B31BC #52BC31
analogous
#5531BC #9B31BC #BC3198
triadic
#9B31BC #BC9B31 #31BC9B
tetradic
#9B31BC #BC5531 #52BC31 #3198BC
square
#9B31BC #BC5531 #52BC31 #3198BC
split-complementary
#9B31BC #98BC31 #31BC55
monochromatic
#4B185B #73248B #9B31BC #B657D3 #CB88E0

Accessibility & contrast

On white

5.90
#9B31BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#9B31BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B31BC
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B31BC#FFFFFF#000000##FFFFFF
##9B31BC1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC0
Deuteranopia (green-blind)
#3267B9
Tritanopia (blue-blind)
#994E74
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9b31bc;
/* rgb */ color: rgb(155, 49, 188);
/* oklch */ color: oklch(53.2% 0.215 316.8);
Tailwind
colors: {
  custom: {
    50: '#bd74d1',
    500: '#9b31bc',
    950: '#000000',
  },
}
SCSS
$custom: #9b31bc;
$custom-light: #bd74d1;
$custom-dark: #000000;
JSON
{
  "hex": "#9b31bc",
  "rgb": {
    "r": 155,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 285.755,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.53172,
    "c": 0.21468,
    "h": 316.8
  },
  "luminance": 0.12796
}

Semantic roles & 50–950 ramp

primary
#9B31BC
secondary
#91CA7F
accent
#E2466B
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#120914
muted
#817B82

Preview Lab

Preview with #9B31BC

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

Preview Lab → · Contrast checker → · Palette generator →

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