#9731AE#9731AE

#9731AE is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 51.7% C 0.201 H 319.6°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#9731AE
RGBrgb(151, 49, 174)
HSLhsl(289, 56%, 44%)
HSVhsv(289, 72%, 68%)
CMYKcmyk(13.2%, 71.8%, 0%, 31.8%)
CIE-LABlab(40.95, 59.18, -46.45)
CIE-LCHlch(40.95, 75.23, 321.87°)
OKLaboklab(51.69% 0.1528 -0.1302)
OKLCHoklch(51.69% 0.201 319.6)
XYZxyz(21.4998, 11.8330, 41.1877)
Luminance0.1183 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9731AE #48AE31
analogous
#5831AE #9731AE #AE3186
triadic
#9731AE #AE9731 #31AE97
tetradic
#9731AE #AE5831 #48AE31 #3186AE
square
#9731AE #AE5831 #48AE31 #3186AE
split-complementary
#9731AE #86AE31 #31AE58
monochromatic
#44164E #6E247E #9731AE #B64FCD #CA7FDB

Accessibility & contrast

On white

6.24
#9731AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#9731AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##9731AE#FFFFFF#000000##FFFFFF
##9731AE1.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB2
Deuteranopia (green-blind)
#3B64AB
Tritanopia (blue-blind)
#97496C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9731ae;
/* rgb */ color: rgb(151, 49, 174);
/* oklch */ color: oklch(51.7% 0.201 319.6);
Tailwind
colors: {
  custom: {
    50: '#b973c7',
    500: '#9731ae',
    950: '#000000',
  },
}
SCSS
$custom: #9731ae;
$custom-light: #b973c7;
$custom-dark: #000000;
JSON
{
  "hex": "#9731ae",
  "rgb": {
    "r": 151,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 288.96,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.51691,
    "c": 0.20077,
    "h": 319.6
  },
  "luminance": 0.11832
}

Semantic roles & 50–950 ramp

primary
#9731AE
secondary
#85C477
accent
#DF4864
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9731AE

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

Preview Lab → · Contrast checker → · Palette generator →

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