#9D31C1#9D31C1

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

Color values

HEX#9D31C1
RGBrgb(157, 49, 193)
HSLhsl(285, 60%, 47%)
HSVhsv(285, 75%, 76%)
CMYKcmyk(18.7%, 74.6%, 0%, 24.3%)
CIE-LABlab(43.09, 64.07, -54.15)
CIE-LCHlch(43.09, 83.89, 319.80°)
OKLaboklab(53.79% 0.1582 -0.1526)
OKLCHoklch(53.79% 0.22 316)
XYZxyz(24.6271, 13.2160, 51.6954)
Luminance0.1321 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D31C1 #55C131
analogous
#5531C1 #9D31C1 #C1319D
triadic
#9D31C1 #C19D31 #31C19D
tetradic
#9D31C1 #C15531 #55C131 #319DC1
square
#9D31C1 #C15531 #55C131 #319DC1
split-complementary
#9D31C1 #9DC131 #31C155
monochromatic
#4E185F #752590 #9D31C1 #B65AD5 #CC8BE2

Accessibility & contrast

On white

5.76
#9D31C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#9D31C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D31C1
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D31C1#FFFFFF#000000##FFFFFF
##9D31C11.005.763.645.76
#FFFFFF5.761.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC5
Deuteranopia (green-blind)
#2F69BE
Tritanopia (blue-blind)
#9B5077
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9d31c1;
/* rgb */ color: rgb(157, 49, 193);
/* oklch */ color: oklch(53.8% 0.220 316.0);
Tailwind
colors: {
  custom: {
    50: '#be74d4',
    500: '#9d31c1',
    950: '#000000',
  },
}
SCSS
$custom: #9d31c1;
$custom-light: #be74d4;
$custom-dark: #000000;
JSON
{
  "hex": "#9d31c1",
  "rgb": {
    "r": 157,
    "g": 49,
    "b": 193
  },
  "hsl": {
    "h": 285,
    "s": 59.504,
    "l": 47.451
  },
  "oklch": {
    "l": 0.53785,
    "c": 0.2198,
    "h": 316
  },
  "luminance": 0.13215
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9D31C1

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

Preview Lab → · Contrast checker → · Palette generator →

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