#9C31CC#9C31CC

#9C31CC is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.4% C 0.229 H 312.7°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#9C31CC
RGBrgb(156, 49, 204)
HSLhsl(281, 61%, 50%)
HSVhsv(281, 76%, 80%)
CMYKcmyk(23.5%, 76%, 0%, 20%)
CIE-LABlab(43.69, 66.06, -59.58)
CIE-LCHlch(43.69, 88.96, 317.95°)
OKLaboklab(54.42% 0.1553 -0.1685)
OKLCHoklch(54.42% 0.229 312.7)
XYZxyz(25.7057, 13.6249, 58.3908)
Luminance0.1362 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C31CC #61CC31
analogous
#4E31CC #9C31CC #CC31AF
triadic
#9C31CC #CC9C31 #31CC9C
tetradic
#9C31CC #CC4E31 #61CC31 #31AFCC
square
#9C31CC #CC4E31 #61CC31 #31AFCC
split-complementary
#9C31CC #AFCC31 #31CC4E
monochromatic
#511969 #76259B #9C31CC #B461D9 #CB92E5

Accessibility & contrast

On white

5.64
#9C31CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#9C31CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C31CC
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C31CC#FFFFFF#000000##FFFFFF
##9C31CC1.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D0
Deuteranopia (green-blind)
#1B69C9
Tritanopia (blue-blind)
#96557D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9c31cc;
/* rgb */ color: rgb(156, 49, 204);
/* oklch */ color: oklch(54.4% 0.229 312.7);
Tailwind
colors: {
  custom: {
    50: '#be75dc',
    500: '#9c31cc',
    950: '#000000',
  },
}
SCSS
$custom: #9c31cc;
$custom-light: #be75dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9c31cc",
  "rgb": {
    "r": 156,
    "g": 49,
    "b": 204
  },
  "hsl": {
    "h": 281.419,
    "s": 61.265,
    "l": 49.608
  },
  "oklch": {
    "l": 0.54419,
    "c": 0.22917,
    "h": 312.7
  },
  "luminance": 0.13624
}

Semantic roles & 50–950 ramp

primary
#9C31CC
secondary
#9FD089
accent
#E44375
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9C31CC

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

Preview Lab → · Contrast checker → · Palette generator →

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