#9C31AF#9C31AF

#9C31AF is a mid, highly saturated purple. Relative luminance 0.124; OKLCH L 52.5% C 0.204 H 321.2°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#9C31AF
RGBrgb(156, 49, 175)
HSLhsl(291, 56%, 44%)
HSVhsv(291, 72%, 69%)
CMYKcmyk(10.9%, 72%, 0%, 31.4%)
CIE-LABlab(41.78, 60.44, -45.67)
CIE-LCHlch(41.78, 75.76, 322.93°)
OKLaboklab(52.46% 0.1587 -0.1277)
OKLCHoklch(52.46% 0.204 321.2)
XYZxyz(22.5456, 12.3609, 41.7475)
Luminance0.1236 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C31AF #44AF31
analogous
#5D31AF #9C31AF #AF3183
triadic
#9C31AF #AF9C31 #31AF9C
tetradic
#9C31AF #AF5D31 #44AF31 #3183AF
square
#9C31AF #AF5D31 #44AF31 #3183AF
split-complementary
#9C31AF #83AF31 #31AF5D
monochromatic
#47164F #71247F #9C31AF #BB4FCE #CD7FDB

Accessibility & contrast

On white

6.05
#9C31AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#9C31AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C31AF
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C31AF#FFFFFF#000000##FFFFFF
##9C31AF1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB3
Deuteranopia (green-blind)
#4066AC
Tritanopia (blue-blind)
#9D496D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9c31af;
/* rgb */ color: rgb(156, 49, 175);
/* oklch */ color: oklch(52.5% 0.204 321.2);
Tailwind
colors: {
  custom: {
    50: '#bd73c7',
    500: '#9c31af',
    950: '#000000',
  },
}
SCSS
$custom: #9c31af;
$custom-light: #bd73c7;
$custom-dark: #000000;
JSON
{
  "hex": "#9c31af",
  "rgb": {
    "r": 156,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 290.952,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.52461,
    "c": 0.20376,
    "h": 321.2
  },
  "luminance": 0.1236
}

Semantic roles & 50–950 ramp

primary
#9C31AF
secondary
#83C478
accent
#E0485F
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9C31AF

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

Preview Lab → · Contrast checker → · Palette generator →

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