#9731BB#9731BB

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

Color values

HEX#9731BB
RGBrgb(151, 49, 187)
HSLhsl(284, 58%, 46%)
HSVhsv(284, 74%, 73%)
CMYKcmyk(19.3%, 73.8%, 0%, 26.7%)
CIE-LABlab(41.79, 61.71, -52.78)
CIE-LCHlch(41.79, 81.20, 319.46°)
OKLaboklab(52.56% 0.1516 -0.1487)
OKLCHoklch(52.56% 0.212 315.5)
XYZxyz(22.8290, 12.3647, 48.1882)
Luminance0.1236 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9731BB #55BB31
analogous
#5231BB #9731BB #BB319A
triadic
#9731BB #BB9731 #31BB97
tetradic
#9731BB #BB5231 #55BB31 #319ABB
square
#9731BB #BB5231 #55BB31 #319ABB
split-complementary
#9731BB #9ABB31 #31BB52
monochromatic
#49185A #70248B #9731BB #B256D3 #C887E0

Accessibility & contrast

On white

6.05
#9731BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#9731BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9731BB
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9731BB#FFFFFF#000000##FFFFFF
##9731BB1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9731bb;
/* rgb */ color: rgb(151, 49, 187);
/* oklch */ color: oklch(52.6% 0.212 315.5);
Tailwind
colors: {
  custom: {
    50: '#ba73d0',
    500: '#9731bb',
    950: '#000000',
  },
}
SCSS
$custom: #9731bb;
$custom-light: #ba73d0;
$custom-dark: #000000;
JSON
{
  "hex": "#9731bb",
  "rgb": {
    "r": 151,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 284.348,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.52557,
    "c": 0.21233,
    "h": 315.5
  },
  "luminance": 0.12364
}

Semantic roles & 50–950 ramp

primary
#9731BB
secondary
#92C97F
accent
#E2466F
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120914
muted
#817B82

Preview Lab

Preview with #9731BB

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

Preview Lab → · Contrast checker → · Palette generator →

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