#9C31C2#9C31C2

#9C31C2 is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.7% C 0.220 H 315.4°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#9C31C2
RGBrgb(156, 49, 194)
HSLhsl(284, 60%, 48%)
HSVhsv(284, 75%, 76%)
CMYKcmyk(19.6%, 74.7%, 0%, 23.9%)
CIE-LABlab(43.00, 64.07, -54.88)
CIE-LCHlch(43.00, 84.36, 319.42°)
OKLaboklab(53.72% 0.1569 -0.1547)
OKLCHoklch(53.72% 0.22 315.4)
XYZxyz(24.5446, 13.1605, 52.2758)
Luminance0.1316 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C31C2 #57C231
analogous
#5431C2 #9C31C2 #C2319F
triadic
#9C31C2 #C29C31 #31C29C
tetradic
#9C31C2 #C25431 #57C231 #319FC2
square
#9C31C2 #C25431 #57C231 #319FC2
split-complementary
#9C31C2 #9FC231 #31C254
monochromatic
#4D1860 #752591 #9C31C2 #B55BD6 #CB8CE2

Accessibility & contrast

On white

5.78
#9C31C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#9C31C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C31C2
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C31C2#FFFFFF#000000##FFFFFF
##9C31C21.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C6
Deuteranopia (green-blind)
#2C68BF
Tritanopia (blue-blind)
#995178
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9c31c2;
/* rgb */ color: rgb(156, 49, 194);
/* oklch */ color: oklch(53.7% 0.220 315.4);
Tailwind
colors: {
  custom: {
    50: '#be74d5',
    500: '#9c31c2',
    950: '#000000',
  },
}
SCSS
$custom: #9c31c2;
$custom-light: #be74d5;
$custom-dark: #000000;
JSON
{
  "hex": "#9c31c2",
  "rgb": {
    "r": 156,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 284.276,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.53717,
    "c": 0.22032,
    "h": 315.4
  },
  "luminance": 0.1316
}

Semantic roles & 50–950 ramp

primary
#9C31C2
secondary
#96CC83
accent
#E3456E
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#130914
muted
#827B83

Preview Lab

Preview with #9C31C2

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

Preview Lab → · Contrast checker → · Palette generator →

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