#9C31BB#9C31BB

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

Color values

HEX#9C31BB
RGBrgb(156, 49, 187)
HSLhsl(287, 58%, 46%)
HSVhsv(287, 74%, 73%)
CMYKcmyk(16.6%, 73.8%, 0%, 26.7%)
CIE-LABlab(42.54, 62.71, -51.53)
CIE-LCHlch(42.54, 81.17, 320.59°)
OKLaboklab(53.24% 0.1577 -0.1449)
OKLCHoklch(53.24% 0.214 317.4)
XYZxyz(23.7770, 12.8534, 48.2326)
Luminance0.1285 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C31BB #50BB31
analogous
#5731BB #9C31BB #BB3195
triadic
#9C31BB #BB9C31 #31BB9C
tetradic
#9C31BB #BB5731 #50BB31 #3195BB
square
#9C31BB #BB5731 #50BB31 #3195BB
split-complementary
#9C31BB #95BB31 #31BB57
monochromatic
#4B185A #74248B #9C31BB #B756D3 #CC87E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9C31BB#FFFFFF#000000##FFFFFF
##9C31BB1.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)
#005EBF
Deuteranopia (green-blind)
#3568B8
Tritanopia (blue-blind)
#9B4E74
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9c31bb;
/* rgb */ color: rgb(156, 49, 187);
/* oklch */ color: oklch(53.2% 0.214 317.4);
Tailwind
colors: {
  custom: {
    50: '#bd74d0',
    500: '#9c31bb',
    950: '#000000',
  },
}
SCSS
$custom: #9c31bb;
$custom-light: #bd74d0;
$custom-dark: #000000;
JSON
{
  "hex": "#9c31bb",
  "rgb": {
    "r": 156,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 286.522,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.53242,
    "c": 0.21418,
    "h": 317.4
  },
  "luminance": 0.12852
}

Semantic roles & 50–950 ramp

primary
#9C31BB
secondary
#8FC97F
accent
#E24669
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130914
muted
#827B82

Preview Lab

Preview with #9C31BB

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

Preview Lab → · Contrast checker → · Palette generator →

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