#9C31BA#9C31BA

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

Color values

HEX#9C31BA
RGBrgb(156, 49, 186)
HSLhsl(287, 58%, 46%)
HSVhsv(287, 74%, 73%)
CMYKcmyk(16.1%, 73.7%, 0%, 27.1%)
CIE-LABlab(42.48, 62.52, -51.04)
CIE-LCHlch(42.48, 80.71, 320.77°)
OKLaboklab(53.18% 0.1578 -0.1435)
OKLCHoklch(53.18% 0.213 317.7)
XYZxyz(23.6703, 12.8108, 47.6708)
Luminance0.1281 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C31BA #4FBA31
analogous
#5731BA #9C31BA #BA3193
triadic
#9C31BA #BA9C31 #31BA9C
tetradic
#9C31BA #BA5731 #4FBA31 #3193BA
square
#9C31BA #BA5731 #4FBA31 #3193BA
split-complementary
#9C31BA #93BA31 #31BA57
monochromatic
#4B1759 #73248A #9C31BA #B756D2 #CC86DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9C31BA#FFFFFF#000000##FFFFFF
##9C31BA1.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)
#005EBE
Deuteranopia (green-blind)
#3668B7
Tritanopia (blue-blind)
#9B4D73
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9c31ba;
/* rgb */ color: rgb(156, 49, 186);
/* oklch */ color: oklch(53.2% 0.213 317.7);
Tailwind
colors: {
  custom: {
    50: '#bd74cf',
    500: '#9c31ba',
    950: '#000000',
  },
}
SCSS
$custom: #9c31ba;
$custom-light: #bd74cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9c31ba",
  "rgb": {
    "r": 156,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 286.861,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.53175,
    "c": 0.2133,
    "h": 317.7
  },
  "luminance": 0.1281
}

Semantic roles & 50–950 ramp

primary
#9C31BA
secondary
#8EC97E
accent
#E24668
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130914
muted
#827B82

Preview Lab

Preview with #9C31BA

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

Preview Lab → · Contrast checker → · Palette generator →

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