#9C31CA#9C31CA

#9C31CA is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.3% C 0.227 H 313.2°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#9C31CA
RGBrgb(156, 49, 202)
HSLhsl(282, 61%, 49%)
HSVhsv(282, 76%, 79%)
CMYKcmyk(22.8%, 75.7%, 0%, 20.8%)
CIE-LABlab(43.55, 65.66, -58.64)
CIE-LCHlch(43.55, 88.04, 318.23°)
OKLaboklab(54.28% 0.1556 -0.1658)
OKLCHoklch(54.28% 0.227 313.2)
XYZxyz(25.4674, 13.5296, 57.1356)
Luminance0.1353 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C31CA #5FCA31
analogous
#5031CA #9C31CA #CA31AC
triadic
#9C31CA #CA9C31 #31CA9C
tetradic
#9C31CA #CA5031 #5FCA31 #31ACCA
square
#9C31CA #CA5031 #5FCA31 #31ACCA
split-complementary
#9C31CA #ACCA31 #31CA50
monochromatic
#501967 #762599 #9C31CA #B460D8 #CB91E4

Accessibility & contrast

On white

5.67
#9C31CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#9C31CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C31CA
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C31CA#FFFFFF#000000##FFFFFF
##9C31CA1.005.673.715.67
#FFFFFF5.671.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CE
Deuteranopia (green-blind)
#1F69C7
Tritanopia (blue-blind)
#97547C
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9c31ca;
/* rgb */ color: rgb(156, 49, 202);
/* oklch */ color: oklch(54.3% 0.227 313.2);
Tailwind
colors: {
  custom: {
    50: '#be75db',
    500: '#9c31ca',
    950: '#000000',
  },
}
SCSS
$custom: #9c31ca;
$custom-light: #be75db;
$custom-dark: #000000;
JSON
{
  "hex": "#9c31ca",
  "rgb": {
    "r": 156,
    "g": 49,
    "b": 202
  },
  "hsl": {
    "h": 281.961,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.54276,
    "c": 0.2274,
    "h": 313.2
  },
  "luminance": 0.13529
}

Semantic roles & 50–950 ramp

primary
#9C31CA
secondary
#9DCF88
accent
#E44474
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9C31CA

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

Preview Lab → · Contrast checker → · Palette generator →

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