#9D31C3#9D31C3

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

Color values

HEX#9D31C3
RGBrgb(157, 49, 195)
HSLhsl(284, 60%, 48%)
HSVhsv(284, 75%, 76%)
CMYKcmyk(19.5%, 74.9%, 0%, 23.5%)
CIE-LABlab(43.22, 64.46, -55.10)
CIE-LCHlch(43.22, 84.80, 319.48°)
OKLaboklab(53.92% 0.158 -0.1554)
OKLCHoklch(53.92% 0.222 315.5)
XYZxyz(24.8517, 13.3058, 52.8784)
Luminance0.1331 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D31C3 #57C331
analogous
#5431C3 #9D31C3 #C331A0
triadic
#9D31C3 #C39D31 #31C39D
tetradic
#9D31C3 #C35431 #57C331 #31A0C3
square
#9D31C3 #C35431 #57C331 #31A0C3
split-complementary
#9D31C3 #A0C331 #31C354
monochromatic
#4E1861 #762592 #9D31C3 #B65BD6 #CC8CE2

Accessibility & contrast

On white

5.74
#9D31C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#9D31C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D31C3
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D31C3#FFFFFF#000000##FFFFFF
##9D31C31.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9d31c3;
/* rgb */ color: rgb(157, 49, 195);
/* oklch */ color: oklch(53.9% 0.222 315.5);
Tailwind
colors: {
  custom: {
    50: '#be74d6',
    500: '#9d31c3',
    950: '#000000',
  },
}
SCSS
$custom: #9d31c3;
$custom-light: #be74d6;
$custom-dark: #000000;
JSON
{
  "hex": "#9d31c3",
  "rgb": {
    "r": 157,
    "g": 49,
    "b": 195
  },
  "hsl": {
    "h": 284.384,
    "s": 59.836,
    "l": 47.843
  },
  "oklch": {
    "l": 0.53922,
    "c": 0.22155,
    "h": 315.5
  },
  "luminance": 0.13305
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9D31C3

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

Preview Lab → · Contrast checker → · Palette generator →

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