#9C31BF#9C31BF

#9C31BF is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.5% C 0.218 H 316.3°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#9C31BF
RGBrgb(156, 49, 191)
HSLhsl(285, 59%, 47%)
HSVhsv(285, 74%, 75%)
CMYKcmyk(18.3%, 74.3%, 0%, 25.1%)
CIE-LABlab(42.80, 63.49, -53.45)
CIE-LCHlch(42.80, 82.99, 319.91°)
OKLaboklab(53.51% 0.1573 -0.1505)
OKLCHoklch(53.51% 0.218 316.3)
XYZxyz(24.2111, 13.0271, 50.5193)
Luminance0.1303 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C31BF #54BF31
analogous
#5531BF #9C31BF #BF319B
triadic
#9C31BF #BF9C31 #31BF9C
tetradic
#9C31BF #BF5531 #54BF31 #319BBF
square
#9C31BF #BF5531 #54BF31 #319BBF
split-complementary
#9C31BF #9BBF31 #31BF55
monochromatic
#4C185E #74258E #9C31BF #B659D4 #CB8AE1

Accessibility & contrast

On white

5.82
#9C31BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#9C31BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C31BF
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C31BF#FFFFFF#000000##FFFFFF
##9C31BF1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC3
Deuteranopia (green-blind)
#3068BC
Tritanopia (blue-blind)
#9A5076
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9c31bf;
/* rgb */ color: rgb(156, 49, 191);
/* oklch */ color: oklch(53.5% 0.218 316.3);
Tailwind
colors: {
  custom: {
    50: '#bd74d3',
    500: '#9c31bf',
    950: '#000000',
  },
}
SCSS
$custom: #9c31bf;
$custom-light: #bd74d3;
$custom-dark: #000000;
JSON
{
  "hex": "#9c31bf",
  "rgb": {
    "r": 156,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 285.211,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.53512,
    "c": 0.21769,
    "h": 316.3
  },
  "luminance": 0.13026
}

Semantic roles & 50–950 ramp

primary
#9C31BF
secondary
#93CB81
accent
#E2456C
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#130914
muted
#827B83

Preview Lab

Preview with #9C31BF

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

Preview Lab → · Contrast checker → · Palette generator →

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