#9731BC#9731BC

#9731BC is a mid, highly saturated purple. Relative luminance 0.124; OKLCH L 52.6% C 0.213 H 315.2°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#9731BC
RGBrgb(151, 49, 188)
HSLhsl(284, 59%, 46%)
HSVhsv(284, 74%, 74%)
CMYKcmyk(19.7%, 73.9%, 0%, 26.3%)
CIE-LABlab(41.86, 61.91, -53.25)
CIE-LCHlch(41.86, 81.66, 319.30°)
OKLaboklab(52.63% 0.1514 -0.1501)
OKLCHoklch(52.63% 0.213 315.2)
XYZxyz(22.9364, 12.4076, 48.7539)
Luminance0.1241 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9731BC #56BC31
analogous
#5231BC #9731BC #BC319C
triadic
#9731BC #BC9731 #31BC97
tetradic
#9731BC #BC5231 #56BC31 #319CBC
square
#9731BC #BC5231 #56BC31 #319CBC
split-complementary
#9731BC #9CBC31 #31BC52
monochromatic
#49185B #70248B #9731BC #B257D3 #C888E0

Accessibility & contrast

On white

6.03
#9731BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#9731BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9731BC
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9731BC#FFFFFF#000000##FFFFFF
##9731BC1.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC0
Deuteranopia (green-blind)
#2C65B9
Tritanopia (blue-blind)
#944F74
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9731bc;
/* rgb */ color: rgb(151, 49, 188);
/* oklch */ color: oklch(52.6% 0.213 315.2);
Tailwind
colors: {
  custom: {
    50: '#ba73d1',
    500: '#9731bc',
    950: '#000000',
  },
}
SCSS
$custom: #9731bc;
$custom-light: #ba73d1;
$custom-dark: #000000;
JSON
{
  "hex": "#9731bc",
  "rgb": {
    "r": 151,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 284.029,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.52626,
    "c": 0.21323,
    "h": 315.2
  },
  "luminance": 0.12407
}

Semantic roles & 50–950 ramp

primary
#9731BC
secondary
#93CA7F
accent
#E2466F
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120914
muted
#817B82

Preview Lab

Preview with #9731BC

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

Preview Lab → · Contrast checker → · Palette generator →

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