#9D31C2#9D31C2

#9D31C2 is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 53.9% C 0.221 H 315.8°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#9D31C2
RGBrgb(157, 49, 194)
HSLhsl(285, 60%, 48%)
HSVhsv(285, 75%, 76%)
CMYKcmyk(19.1%, 74.7%, 0%, 23.9%)
CIE-LABlab(43.15, 64.27, -54.63)
CIE-LCHlch(43.15, 84.35, 319.64°)
OKLaboklab(53.85% 0.1581 -0.154)
OKLCHoklch(53.85% 0.221 315.8)
XYZxyz(24.7390, 13.2607, 52.2849)
Luminance0.1326 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D31C2 #56C231
analogous
#5531C2 #9D31C2 #C2319E
triadic
#9D31C2 #C29D31 #31C29D
tetradic
#9D31C2 #C25531 #56C231 #319EC2
square
#9D31C2 #C25531 #56C231 #319EC2
split-complementary
#9D31C2 #9EC231 #31C255
monochromatic
#4E1860 #752591 #9D31C2 #B65BD6 #CC8CE2

Accessibility & contrast

On white

5.75
#9D31C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#9D31C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D31C2
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D31C2#FFFFFF#000000##FFFFFF
##9D31C21.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C6
Deuteranopia (green-blind)
#2E69BF
Tritanopia (blue-blind)
#9A5178
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9d31c2;
/* rgb */ color: rgb(157, 49, 194);
/* oklch */ color: oklch(53.9% 0.221 315.8);
Tailwind
colors: {
  custom: {
    50: '#be74d5',
    500: '#9d31c2',
    950: '#000000',
  },
}
SCSS
$custom: #9d31c2;
$custom-light: #be74d5;
$custom-dark: #000000;
JSON
{
  "hex": "#9d31c2",
  "rgb": {
    "r": 157,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 284.69,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.53853,
    "c": 0.22067,
    "h": 315.8
  },
  "luminance": 0.1326
}

Semantic roles & 50–950 ramp

primary
#9D31C2
secondary
#95CC83
accent
#E3456D
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#130914
muted
#827B83

Preview Lab

Preview with #9D31C2

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

Preview Lab → · Contrast checker → · Palette generator →

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