#9731A0#9731A0

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

Color values

HEX#9731A0
RGBrgb(151, 49, 160)
HSLhsl(295, 53%, 41%)
HSVhsv(295, 69%, 63%)
CMYKcmyk(5.6%, 69.4%, 0%, 37.3%)
CIE-LABlab(40.11, 56.57, -39.44)
CIE-LCHlch(40.11, 68.96, 325.12°)
OKLaboklab(50.82% 0.1534 -0.1097)
OKLCHoklch(50.82% 0.189 324.4)
XYZxyz(20.2054, 11.3152, 34.3707)
Luminance0.1131 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9731A0 #3AA031
analogous
#5F31A0 #9731A0 #A03171
triadic
#9731A0 #A09731 #31A097
tetradic
#9731A0 #A05F31 #3AA031 #3171A0
square
#9731A0 #A05F31 #3AA031 #3171A0
split-complementary
#9731A0 #71A031 #31A05F
monochromatic
#3F1442 #6B2371 #9731A0 #BC47C7 #CD76D5

Accessibility & contrast

On white

6.44
#9731A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#9731A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##9731A0#FFFFFF#000000##FFFFFF
##9731A01.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1557A3
Deuteranopia (green-blind)
#45639D
Tritanopia (blue-blind)
#9A4365
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9731a0;
/* rgb */ color: rgb(151, 49, 160);
/* oklch */ color: oklch(50.8% 0.189 324.4);
Tailwind
colors: {
  custom: {
    50: '#b972bc',
    500: '#9731a0',
    950: '#000000',
  },
}
SCSS
$custom: #9731a0;
$custom-light: #b972bc;
$custom-dark: #000000;
JSON
{
  "hex": "#9731a0",
  "rgb": {
    "r": 151,
    "g": 49,
    "b": 160
  },
  "hsl": {
    "h": 295.135,
    "s": 53.11,
    "l": 40.98
  },
  "oklch": {
    "l": 0.50817,
    "c": 0.18858,
    "h": 324.4
  },
  "luminance": 0.11314
}

Semantic roles & 50–950 ramp

primary
#9731A0
secondary
#76BD70
accent
#DD4B57
background
#FBF7FB
surface
#F7EDF6
border
#D0C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #9731A0

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

Preview Lab → · Contrast checker → · Palette generator →

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