#9731AD#9731AD

#9731AD is a mid, vivid purple. Relative luminance 0.118; OKLCH L 51.6% C 0.200 H 319.9°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#9731AD
RGBrgb(151, 49, 173)
HSLhsl(289, 56%, 44%)
HSVhsv(289, 72%, 68%)
CMYKcmyk(12.7%, 71.7%, 0%, 32.2%)
CIE-LABlab(40.89, 58.99, -45.96)
CIE-LCHlch(40.89, 74.78, 322.08°)
OKLaboklab(51.63% 0.1529 -0.1287)
OKLCHoklch(51.63% 0.2 319.9)
XYZxyz(21.4027, 11.7941, 40.6762)
Luminance0.1179 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9731AD #47AD31
analogous
#5931AD #9731AD #AD3185
triadic
#9731AD #AD9731 #31AD97
tetradic
#9731AD #AD5931 #47AD31 #3185AD
square
#9731AD #AD5931 #47AD31 #3185AD
split-complementary
#9731AD #85AD31 #31AD59
monochromatic
#44164E #6D237D #9731AD #B64ECD #CA7EDA

Accessibility & contrast

On white

6.25
#9731AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#9731AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9731AD
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9731AD#FFFFFF#000000##FFFFFF
##9731AD1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B1
Deuteranopia (green-blind)
#3C64AA
Tritanopia (blue-blind)
#97496C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9731ad;
/* rgb */ color: rgb(151, 49, 173);
/* oklch */ color: oklch(51.6% 0.200 319.9);
Tailwind
colors: {
  custom: {
    50: '#b973c6',
    500: '#9731ad',
    950: '#000000',
  },
}
SCSS
$custom: #9731ad;
$custom-light: #b973c6;
$custom-dark: #000000;
JSON
{
  "hex": "#9731ad",
  "rgb": {
    "r": 151,
    "g": 49,
    "b": 173
  },
  "hsl": {
    "h": 289.355,
    "s": 55.856,
    "l": 43.529
  },
  "oklch": {
    "l": 0.51626,
    "c": 0.19989,
    "h": 319.9
  },
  "luminance": 0.11793
}

Semantic roles & 50–950 ramp

primary
#9731AD
secondary
#84C377
accent
#DF4963
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9731AD

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

Preview Lab → · Contrast checker → · Palette generator →

#9731AD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva