#9731A1#9731A1

#9731A1 is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.9% C 0.189 H 324.1°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#9731A1
RGBrgb(151, 49, 161)
HSLhsl(295, 53%, 41%)
HSVhsv(295, 70%, 63%)
CMYKcmyk(6.2%, 69.6%, 0%, 36.9%)
CIE-LABlab(40.16, 56.75, -39.95)
CIE-LCHlch(40.16, 69.40, 324.86°)
OKLaboklab(50.88% 0.1534 -0.1112)
OKLCHoklch(50.88% 0.189 324.1)
XYZxyz(20.2933, 11.3504, 34.8333)
Luminance0.1135 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9731A1 #3BA131
analogous
#5F31A1 #9731A1 #A13173
triadic
#9731A1 #A19731 #31A197
tetradic
#9731A1 #A15F31 #3BA131 #3173A1
square
#9731A1 #A15F31 #3BA131 #3173A1
split-complementary
#9731A1 #73A131 #31A15F
monochromatic
#3F1443 #6B2372 #9731A1 #BC48C7 #CD77D6

Accessibility & contrast

On white

6.42
#9731A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#9731A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##9731A1#FFFFFF#000000##FFFFFF
##9731A11.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1357A4
Deuteranopia (green-blind)
#45639E
Tritanopia (blue-blind)
#9A4365
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9731a1;
/* rgb */ color: rgb(151, 49, 161);
/* oklch */ color: oklch(50.9% 0.189 324.1);
Tailwind
colors: {
  custom: {
    50: '#b972bd',
    500: '#9731a1',
    950: '#000000',
  },
}
SCSS
$custom: #9731a1;
$custom-light: #b972bd;
$custom-dark: #000000;
JSON
{
  "hex": "#9731a1",
  "rgb": {
    "r": 151,
    "g": 49,
    "b": 161
  },
  "hsl": {
    "h": 294.643,
    "s": 53.333,
    "l": 41.176
  },
  "oklch": {
    "l": 0.50877,
    "c": 0.18944,
    "h": 324.1
  },
  "luminance": 0.11349
}

Semantic roles & 50–950 ramp

primary
#9731A1
secondary
#77BE70
accent
#DD4B58
background
#FBF7FB
surface
#F7EDF6
border
#D0C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #9731A1

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

Preview Lab → · Contrast checker → · Palette generator →

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