#9B31BB#9B31BB

#9B31BB is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.1% C 0.214 H 317.1°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#9B31BB
RGBrgb(155, 49, 187)
HSLhsl(286, 58%, 46%)
HSVhsv(286, 74%, 73%)
CMYKcmyk(17.1%, 73.8%, 0%, 26.7%)
CIE-LABlab(42.39, 62.51, -51.78)
CIE-LCHlch(42.39, 81.17, 320.37°)
OKLaboklab(53.1% 0.1565 -0.1457)
OKLCHoklch(53.1% 0.214 317.1)
XYZxyz(23.5842, 12.7540, 48.2235)
Luminance0.1275 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B31BB #51BB31
analogous
#5631BB #9B31BB #BB3196
triadic
#9B31BB #BB9B31 #31BB9B
tetradic
#9B31BB #BB5631 #51BB31 #3196BB
square
#9B31BB #BB5631 #51BB31 #3196BB
split-complementary
#9B31BB #96BB31 #31BB56
monochromatic
#4B185A #73248B #9B31BB #B656D3 #CB87E0

Accessibility & contrast

On white

5.91
#9B31BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#9B31BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B31BB
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B31BB#FFFFFF#000000##FFFFFF
##9B31BB1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBF
Deuteranopia (green-blind)
#3367B8
Tritanopia (blue-blind)
#994E74
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9b31bb;
/* rgb */ color: rgb(155, 49, 187);
/* oklch */ color: oklch(53.1% 0.214 317.1);
Tailwind
colors: {
  custom: {
    50: '#bd74d0',
    500: '#9b31bb',
    950: '#000000',
  },
}
SCSS
$custom: #9b31bb;
$custom-light: #bd74d0;
$custom-dark: #000000;
JSON
{
  "hex": "#9b31bb",
  "rgb": {
    "r": 155,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 286.087,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.53104,
    "c": 0.2138,
    "h": 317.1
  },
  "luminance": 0.12753
}

Semantic roles & 50–950 ramp

primary
#9B31BB
secondary
#90C97F
accent
#E2466A
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#120914
muted
#817B82

Preview Lab

Preview with #9B31BB

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

Preview Lab → · Contrast checker → · Palette generator →

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