#9D31AE#9D31AE

#9D31AE is a mid, highly saturated purple. Relative luminance 0.124; OKLCH L 52.5% C 0.203 H 321.9°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#9D31AE
RGBrgb(157, 49, 174)
HSLhsl(292, 56%, 44%)
HSVhsv(292, 72%, 68%)
CMYKcmyk(9.8%, 71.8%, 0%, 31.8%)
CIE-LABlab(41.88, 60.47, -44.91)
CIE-LCHlch(41.88, 75.33, 323.40°)
OKLaboklab(52.54% 0.16 -0.1255)
OKLCHoklch(52.54% 0.203 321.9)
XYZxyz(22.6421, 12.4220, 41.2412)
Luminance0.1242 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D31AE #42AE31
analogous
#5E31AE #9D31AE #AE3180
triadic
#9D31AE #AE9D31 #31AE9D
tetradic
#9D31AE #AE5E31 #42AE31 #3180AE
square
#9D31AE #AE5E31 #42AE31 #3180AE
split-complementary
#9D31AE #80AE31 #31AE5E
monochromatic
#47164E #72247E #9D31AE #BC4FCD #CE7FDB

Accessibility & contrast

On white

6.03
#9D31AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#9D31AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D31AE
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D31AE#FFFFFF#000000##FFFFFF
##9D31AE1.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB2
Deuteranopia (green-blind)
#4267AB
Tritanopia (blue-blind)
#9F486D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9d31ae;
/* rgb */ color: rgb(157, 49, 174);
/* oklch */ color: oklch(52.5% 0.203 321.9);
Tailwind
colors: {
  custom: {
    50: '#be73c7',
    500: '#9d31ae',
    950: '#000000',
  },
}
SCSS
$custom: #9d31ae;
$custom-light: #be73c7;
$custom-dark: #000000;
JSON
{
  "hex": "#9d31ae",
  "rgb": {
    "r": 157,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 291.84,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.5254,
    "c": 0.20334,
    "h": 321.9
  },
  "luminance": 0.12421
}

Semantic roles & 50–950 ramp

primary
#9D31AE
secondary
#82C477
accent
#DF485D
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #9D31AE

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

Preview Lab → · Contrast checker → · Palette generator →

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