#9D31AD#9D31AD

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

Color values

HEX#9D31AD
RGBrgb(157, 49, 173)
HSLhsl(292, 56%, 44%)
HSVhsv(292, 72%, 68%)
CMYKcmyk(9.2%, 71.7%, 0%, 32.2%)
CIE-LABlab(41.82, 60.29, -44.42)
CIE-LCHlch(41.82, 74.89, 323.62°)
OKLaboklab(52.48% 0.16 -0.1241)
OKLCHoklch(52.48% 0.202 322.2)
XYZxyz(22.5450, 12.3831, 40.7297)
Luminance0.1238 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D31AD #41AD31
analogous
#5F31AD #9D31AD #AD317F
triadic
#9D31AD #AD9D31 #31AD9D
tetradic
#9D31AD #AD5F31 #41AD31 #317FAD
square
#9D31AD #AD5F31 #41AD31 #317FAD
split-complementary
#9D31AD #7FAD31 #31AD5F
monochromatic
#46164E #72237D #9D31AD #BD4ECD #CF7EDA

Accessibility & contrast

On white

6.04
#9D31AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9D31AD
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D31AD#FFFFFF#000000##FFFFFF
##9D31AD1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB0
Deuteranopia (green-blind)
#4267AA
Tritanopia (blue-blind)
#9F476C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9d31ad;
/* rgb */ color: rgb(157, 49, 173);
/* oklch */ color: oklch(52.5% 0.202 322.2);
Tailwind
colors: {
  custom: {
    50: '#be73c6',
    500: '#9d31ad',
    950: '#000000',
  },
}
SCSS
$custom: #9d31ad;
$custom-light: #be73c6;
$custom-dark: #000000;
JSON
{
  "hex": "#9d31ad",
  "rgb": {
    "r": 157,
    "g": 49,
    "b": 173
  },
  "hsl": {
    "h": 292.258,
    "s": 55.856,
    "l": 43.529
  },
  "oklch": {
    "l": 0.52477,
    "c": 0.20248,
    "h": 322.2
  },
  "luminance": 0.12382
}

Semantic roles & 50–950 ramp

primary
#9D31AD
secondary
#80C377
accent
#DF495C
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #9D31AD

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

Preview Lab → · Contrast checker → · Palette generator →

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