#9731AC#9731AC

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

Color values

HEX#9731AC
RGBrgb(151, 49, 172)
HSLhsl(290, 56%, 43%)
HSVhsv(290, 72%, 67%)
CMYKcmyk(12.2%, 71.5%, 0%, 32.5%)
CIE-LABlab(40.83, 58.80, -45.47)
CIE-LCHlch(40.83, 74.33, 322.29°)
OKLaboklab(51.56% 0.153 -0.1273)
OKLCHoklch(51.56% 0.199 320.2)
XYZxyz(21.3063, 11.7556, 40.1685)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9731AC #46AC31
analogous
#5931AC #9731AC #AC3183
triadic
#9731AC #AC9731 #31AC97
tetradic
#9731AC #AC5931 #46AC31 #3183AC
square
#9731AC #AC5931 #46AC31 #3183AC
split-complementary
#9731AC #83AC31 #31AC59
monochromatic
#43164D #6D237C #9731AC #B74ECC #CA7DDA

Accessibility & contrast

On white

6.27
#9731AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#9731AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##9731AC#FFFFFF#000000##FFFFFF
##9731AC1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AF
Deuteranopia (green-blind)
#3D64A9
Tritanopia (blue-blind)
#98486B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9731ac;
/* rgb */ color: rgb(151, 49, 172);
/* oklch */ color: oklch(51.6% 0.199 320.2);
Tailwind
colors: {
  custom: {
    50: '#b973c5',
    500: '#9731ac',
    950: '#000000',
  },
}
SCSS
$custom: #9731ac;
$custom-light: #b973c5;
$custom-dark: #000000;
JSON
{
  "hex": "#9731ac",
  "rgb": {
    "r": 151,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 289.756,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.51562,
    "c": 0.19902,
    "h": 320.2
  },
  "luminance": 0.11754
}

Semantic roles & 50–950 ramp

primary
#9731AC
secondary
#83C376
accent
#DF4962
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9731AC

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

Preview Lab → · Contrast checker → · Palette generator →

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