#9731B1#9731B1

#9731B1 is a mid, highly saturated purple. Relative luminance 0.119; OKLCH L 51.9% C 0.203 H 318.6°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#9731B1
RGBrgb(151, 49, 177)
HSLhsl(288, 57%, 44%)
HSVhsv(288, 72%, 69%)
CMYKcmyk(14.7%, 72.3%, 0%, 30.6%)
CIE-LABlab(41.14, 59.75, -47.93)
CIE-LCHlch(41.14, 76.60, 321.27°)
OKLaboklab(51.89% 0.1526 -0.1345)
OKLCHoklch(51.89% 0.203 318.6)
XYZxyz(21.7955, 11.9513, 42.7452)
Luminance0.1195 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9731B1 #4BB131
analogous
#5731B1 #9731B1 #B1318B
triadic
#9731B1 #B19731 #31B197
tetradic
#9731B1 #B15731 #4BB131 #318BB1
square
#9731B1 #B15731 #4BB131 #318BB1
split-complementary
#9731B1 #8BB131 #31B157
monochromatic
#451651 #6E2481 #9731B1 #B551CF #C980DC

Accessibility & contrast

On white

6.19
#9731B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#9731B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##9731B1#FFFFFF#000000##FFFFFF
##9731B11.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB5
Deuteranopia (green-blind)
#3864AE
Tritanopia (blue-blind)
#974A6E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9731b1;
/* rgb */ color: rgb(151, 49, 177);
/* oklch */ color: oklch(51.9% 0.203 318.6);
Tailwind
colors: {
  custom: {
    50: '#b973c9',
    500: '#9731b1',
    950: '#000000',
  },
}
SCSS
$custom: #9731b1;
$custom-light: #b973c9;
$custom-dark: #000000;
JSON
{
  "hex": "#9731b1",
  "rgb": {
    "r": 151,
    "g": 49,
    "b": 177
  },
  "hsl": {
    "h": 287.813,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.51886,
    "c": 0.20343,
    "h": 318.6
  },
  "luminance": 0.1195
}

Semantic roles & 50–950 ramp

primary
#9731B1
secondary
#88C579
accent
#E04867
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9731B1

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

Preview Lab → · Contrast checker → · Palette generator →

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