#9731BF#9731BF

#9731BF is a mid, highly saturated purple. Relative luminance 0.125; OKLCH L 52.8% C 0.216 H 314.4°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#9731BF
RGBrgb(151, 49, 191)
HSLhsl(283, 59%, 47%)
HSVhsv(283, 74%, 75%)
CMYKcmyk(20.9%, 74.3%, 0%, 25.1%)
CIE-LABlab(42.06, 62.51, -54.69)
CIE-LCHlch(42.06, 83.05, 318.82°)
OKLaboklab(52.83% 0.151 -0.1543)
OKLCHoklch(52.83% 0.216 314.4)
XYZxyz(23.2632, 12.5383, 50.4748)
Luminance0.1254 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9731BF #59BF31
analogous
#5031BF #9731BF #BF31A0
triadic
#9731BF #BF9731 #31BF97
tetradic
#9731BF #BF5031 #59BF31 #31A0BF
square
#9731BF #BF5031 #59BF31 #31A0BF
split-complementary
#9731BF #A0BF31 #31BF50
monochromatic
#4A185E #70258E #9731BF #B259D4 #C88AE1

Accessibility & contrast

On white

5.99
#9731BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#9731BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9731BF
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9731BF#FFFFFF#000000##FFFFFF
##9731BF1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC3
Deuteranopia (green-blind)
#2866BC
Tritanopia (blue-blind)
#935076
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9731bf;
/* rgb */ color: rgb(151, 49, 191);
/* oklch */ color: oklch(52.8% 0.216 314.4);
Tailwind
colors: {
  custom: {
    50: '#ba73d3',
    500: '#9731bf',
    950: '#000000',
  },
}
SCSS
$custom: #9731bf;
$custom-light: #ba73d3;
$custom-dark: #000000;
JSON
{
  "hex": "#9731bf",
  "rgb": {
    "r": 151,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 283.099,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.52833,
    "c": 0.21593,
    "h": 314.4
  },
  "luminance": 0.12538
}

Semantic roles & 50–950 ramp

primary
#9731BF
secondary
#96CB81
accent
#E24572
background
#FBF7FD
surface
#F7EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #9731BF

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

Preview Lab → · Contrast checker → · Palette generator →

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