#9731AA#9731AA

#9731AA is a mid, vivid purple. Relative luminance 0.117; OKLCH L 51.4% C 0.197 H 320.9°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#9731AA
RGBrgb(151, 49, 170)
HSLhsl(291, 55%, 43%)
HSVhsv(291, 71%, 67%)
CMYKcmyk(11.2%, 71.2%, 0%, 33.3%)
CIE-LABlab(40.70, 58.42, -44.47)
CIE-LCHlch(40.70, 73.42, 322.72°)
OKLaboklab(51.43% 0.1531 -0.1244)
OKLCHoklch(51.43% 0.197 320.9)
XYZxyz(21.1157, 11.6793, 39.1645)
Luminance0.1168 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9731AA #44AA31
analogous
#5B31AA #9731AA #AA3180
triadic
#9731AA #AA9731 #31AA97
tetradic
#9731AA #AA5B31 #44AA31 #3180AA
square
#9731AA #AA5B31 #44AA31 #3180AA
split-complementary
#9731AA #80AA31 #31AA5B
monochromatic
#43164B #6D237A #9731AA #B84DCC #CB7CD9

Accessibility & contrast

On white

6.30
#9731AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#9731AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##9731AA#FFFFFF#000000##FFFFFF
##9731AA1.006.303.346.30
#FFFFFF6.301.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AD
Deuteranopia (green-blind)
#3E64A7
Tritanopia (blue-blind)
#98476A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9731aa;
/* rgb */ color: rgb(151, 49, 170);
/* oklch */ color: oklch(51.4% 0.197 320.9);
Tailwind
colors: {
  custom: {
    50: '#b973c4',
    500: '#9731aa',
    950: '#000000',
  },
}
SCSS
$custom: #9731aa;
$custom-light: #b973c4;
$custom-dark: #000000;
JSON
{
  "hex": "#9731aa",
  "rgb": {
    "r": 151,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 290.579,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.51435,
    "c": 0.19725,
    "h": 320.9
  },
  "luminance": 0.11678
}

Semantic roles & 50–950 ramp

primary
#9731AA
secondary
#81C275
accent
#DF4961
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9731AA

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

Preview Lab → · Contrast checker → · Palette generator →

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