#9731B7#9731B7

#9731B7 is a mid, highly saturated purple. Relative luminance 0.122; OKLCH L 52.3% C 0.209 H 316.7°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#9731B7
RGBrgb(151, 49, 183)
HSLhsl(286, 58%, 45%)
HSVhsv(286, 73%, 72%)
CMYKcmyk(17.5%, 73.2%, 0%, 28.2%)
CIE-LABlab(41.53, 60.92, -50.85)
CIE-LCHlch(41.53, 79.35, 320.15°)
OKLaboklab(52.29% 0.152 -0.1431)
OKLCHoklch(52.29% 0.209 316.7)
XYZxyz(22.4068, 12.1958, 45.9643)
Luminance0.1220 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9731B7 #51B731
analogous
#5431B7 #9731B7 #B73194
triadic
#9731B7 #B79731 #31B797
tetradic
#9731B7 #B75431 #51B731 #3194B7
square
#9731B7 #B75431 #51B731 #3194B7
split-complementary
#9731B7 #94B731 #31B754
monochromatic
#471756 #6F2487 #9731B7 #B354D1 #C984DE

Accessibility & contrast

On white

6.11
#9731B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#9731B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9731B7
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9731B7#FFFFFF#000000##FFFFFF
##9731B71.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBB
Deuteranopia (green-blind)
#3265B4
Tritanopia (blue-blind)
#954D71
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9731b7;
/* rgb */ color: rgb(151, 49, 183);
/* oklch */ color: oklch(52.3% 0.209 316.7);
Tailwind
colors: {
  custom: {
    50: '#ba73cd',
    500: '#9731b7',
    950: '#000000',
  },
}
SCSS
$custom: #9731b7;
$custom-light: #ba73cd;
$custom-dark: #000000;
JSON
{
  "hex": "#9731b7",
  "rgb": {
    "r": 151,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 285.672,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.52285,
    "c": 0.20876,
    "h": 316.7
  },
  "luminance": 0.12195
}

Semantic roles & 50–950 ramp

primary
#9731B7
secondary
#8EC87C
accent
#E1476C
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120913
muted
#817B82

Preview Lab

Preview with #9731B7

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

Preview Lab → · Contrast checker → · Palette generator →

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