#9D31AC#9D31AC

#9D31AC is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.4% C 0.202 H 322.5°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#9D31AC
RGBrgb(157, 49, 172)
HSLhsl(293, 56%, 43%)
HSVhsv(293, 72%, 67%)
CMYKcmyk(8.7%, 71.5%, 0%, 32.5%)
CIE-LABlab(41.76, 60.11, -43.92)
CIE-LCHlch(41.76, 74.44, 323.84°)
OKLaboklab(52.42% 0.1601 -0.1226)
OKLCHoklch(52.42% 0.202 322.5)
XYZxyz(22.4486, 12.3446, 40.2220)
Luminance0.1234 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D31AC #40AC31
analogous
#5F31AC #9D31AC #AC317D
triadic
#9D31AC #AC9D31 #31AC9D
tetradic
#9D31AC #AC5F31 #40AC31 #317DAC
square
#9D31AC #AC5F31 #40AC31 #317DAC
split-complementary
#9D31AC #7DAC31 #31AC5F
monochromatic
#46164D #72237C #9D31AC #BD4ECC #CF7DDA

Accessibility & contrast

On white

6.05
#9D31AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#9D31AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D31AC
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D31AC#FFFFFF#000000##FFFFFF
##9D31AC1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BAF
Deuteranopia (green-blind)
#4367A9
Tritanopia (blue-blind)
#9F476B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9d31ac;
/* rgb */ color: rgb(157, 49, 172);
/* oklch */ color: oklch(52.4% 0.202 322.5);
Tailwind
colors: {
  custom: {
    50: '#bd73c5',
    500: '#9d31ac',
    950: '#000000',
  },
}
SCSS
$custom: #9d31ac;
$custom-light: #bd73c5;
$custom-dark: #000000;
JSON
{
  "hex": "#9d31ac",
  "rgb": {
    "r": 157,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 292.683,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.52415,
    "c": 0.20162,
    "h": 322.5
  },
  "luminance": 0.12343
}

Semantic roles & 50–950 ramp

primary
#9D31AC
secondary
#7FC376
accent
#DF495B
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #9D31AC

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

Preview Lab → · Contrast checker → · Palette generator →

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