#9731AB#9731AB

#9731AB is a mid, vivid purple. Relative luminance 0.117; OKLCH L 51.5% C 0.198 H 320.6°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#9731AB
RGBrgb(151, 49, 171)
HSLhsl(290, 55%, 43%)
HSVhsv(290, 71%, 67%)
CMYKcmyk(11.7%, 71.3%, 0%, 32.9%)
CIE-LABlab(40.76, 58.61, -44.97)
CIE-LCHlch(40.76, 73.87, 322.50°)
OKLaboklab(51.5% 0.153 -0.1259)
OKLCHoklch(51.5% 0.198 320.6)
XYZxyz(21.2106, 11.7173, 39.6646)
Luminance0.1172 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9731AB #45AB31
analogous
#5A31AB #9731AB #AB3182
triadic
#9731AB #AB9731 #31AB97
tetradic
#9731AB #AB5A31 #45AB31 #3182AB
square
#9731AB #AB5A31 #45AB31 #3182AB
split-complementary
#9731AB #82AB31 #31AB5A
monochromatic
#43164C #6D237B #9731AB #B74DCC #CA7DDA

Accessibility & contrast

On white

6.28
#9731AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#9731AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9731AB
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9731AB#FFFFFF#000000##FFFFFF
##9731AB1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9731ab;
/* rgb */ color: rgb(151, 49, 171);
/* oklch */ color: oklch(51.5% 0.198 320.6);
Tailwind
colors: {
  custom: {
    50: '#b973c5',
    500: '#9731ab',
    950: '#000000',
  },
}
SCSS
$custom: #9731ab;
$custom-light: #b973c5;
$custom-dark: #000000;
JSON
{
  "hex": "#9731ab",
  "rgb": {
    "r": 151,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 290.164,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.51498,
    "c": 0.19814,
    "h": 320.6
  },
  "luminance": 0.11716
}

Semantic roles & 50–950 ramp

primary
#9731AB
secondary
#82C275
accent
#DF4962
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9731AB

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

Preview Lab → · Contrast checker → · Palette generator →

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