#9C31BD#9C31BD

#9C31BD is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.4% C 0.216 H 316.8°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#9C31BD
RGBrgb(156, 49, 189)
HSLhsl(286, 59%, 47%)
HSVhsv(286, 74%, 74%)
CMYKcmyk(17.5%, 74.1%, 0%, 25.9%)
CIE-LABlab(42.67, 63.10, -52.49)
CIE-LCHlch(42.67, 82.08, 320.24°)
OKLaboklab(53.38% 0.1575 -0.1477)
OKLCHoklch(53.38% 0.216 316.8)
XYZxyz(23.9925, 12.9397, 49.3680)
Luminance0.1294 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C31BD #52BD31
analogous
#5631BD #9C31BD #BD3198
triadic
#9C31BD #BD9C31 #31BD9C
tetradic
#9C31BD #BD5631 #52BD31 #3198BD
square
#9C31BD #BD5631 #52BD31 #3198BD
split-complementary
#9C31BD #98BD31 #31BD56
monochromatic
#4C185C #74248C #9C31BD #B658D4 #CB88E0

Accessibility & contrast

On white

5.85
#9C31BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#9C31BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C31BD
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C31BD#FFFFFF#000000##FFFFFF
##9C31BD1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC1
Deuteranopia (green-blind)
#3368BA
Tritanopia (blue-blind)
#9A4F75
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9c31bd;
/* rgb */ color: rgb(156, 49, 189);
/* oklch */ color: oklch(53.4% 0.216 316.8);
Tailwind
colors: {
  custom: {
    50: '#bd74d2',
    500: '#9c31bd',
    950: '#000000',
  },
}
SCSS
$custom: #9c31bd;
$custom-light: #bd74d2;
$custom-dark: #000000;
JSON
{
  "hex": "#9c31bd",
  "rgb": {
    "r": 156,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 285.857,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.53376,
    "c": 0.21593,
    "h": 316.8
  },
  "luminance": 0.12939
}

Semantic roles & 50–950 ramp

primary
#9C31BD
secondary
#91CA80
accent
#E2466B
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130914
muted
#827B82

Preview Lab

Preview with #9C31BD

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

Preview Lab → · Contrast checker → · Palette generator →

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