#9731BD#9731BD

#9731BD is a mid, highly saturated purple. Relative luminance 0.124; OKLCH L 52.7% C 0.214 H 315.0°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#9731BD
RGBrgb(151, 49, 189)
HSLhsl(284, 59%, 47%)
HSVhsv(284, 74%, 74%)
CMYKcmyk(20.1%, 74.1%, 0%, 25.9%)
CIE-LABlab(41.92, 62.11, -53.73)
CIE-LCHlch(41.92, 82.12, 319.13°)
OKLaboklab(52.7% 0.1513 -0.1515)
OKLCHoklch(52.7% 0.214 315)
XYZxyz(23.0446, 12.4509, 49.3236)
Luminance0.1245 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9731BD #57BD31
analogous
#5131BD #9731BD #BD319D
triadic
#9731BD #BD9731 #31BD97
tetradic
#9731BD #BD5131 #57BD31 #319DBD
square
#9731BD #BD5131 #57BD31 #319DBD
split-complementary
#9731BD #9DBD31 #31BD51
monochromatic
#49185C #70248C #9731BD #B258D4 #C888E0

Accessibility & contrast

On white

6.02
#9731BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#9731BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9731BD
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9731BD#FFFFFF#000000##FFFFFF
##9731BD1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC1
Deuteranopia (green-blind)
#2B65BA
Tritanopia (blue-blind)
#945075
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9731bd;
/* rgb */ color: rgb(151, 49, 189);
/* oklch */ color: oklch(52.7% 0.214 315.0);
Tailwind
colors: {
  custom: {
    50: '#ba73d2',
    500: '#9731bd',
    950: '#000000',
  },
}
SCSS
$custom: #9731bd;
$custom-light: #ba73d2;
$custom-dark: #000000;
JSON
{
  "hex": "#9731bd",
  "rgb": {
    "r": 151,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 283.714,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.52695,
    "c": 0.21413,
    "h": 315
  },
  "luminance": 0.1245
}

Semantic roles & 50–950 ramp

primary
#9731BD
secondary
#94CA80
accent
#E24670
background
#FBF7FD
surface
#F7EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #9731BD

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

Preview Lab → · Contrast checker → · Palette generator →

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