#9731B9#9731B9

#9731B9 is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.4% C 0.211 H 316.1°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#9731B9
RGBrgb(151, 49, 185)
HSLhsl(285, 58%, 46%)
HSVhsv(285, 74%, 73%)
CMYKcmyk(18.4%, 73.5%, 0%, 27.5%)
CIE-LABlab(41.66, 61.31, -51.81)
CIE-LCHlch(41.66, 80.28, 319.80°)
OKLaboklab(52.42% 0.1518 -0.1459)
OKLCHoklch(52.42% 0.211 316.1)
XYZxyz(22.6164, 12.2796, 47.0684)
Luminance0.1228 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9731B9 #53B931
analogous
#5331B9 #9731B9 #B93197
triadic
#9731B9 #B99731 #31B997
tetradic
#9731B9 #B95331 #53B931 #3197B9
square
#9731B9 #B95331 #53B931 #3197B9
split-complementary
#9731B9 #97B931 #31B953
monochromatic
#481758 #702489 #9731B9 #B355D2 #C986DF

Accessibility & contrast

On white

6.08
#9731B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#9731B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9731B9
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9731B9#FFFFFF#000000##FFFFFF
##9731B91.006.083.466.08
#FFFFFF6.081.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBD
Deuteranopia (green-blind)
#3065B6
Tritanopia (blue-blind)
#954E73
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9731b9;
/* rgb */ color: rgb(151, 49, 185);
/* oklch */ color: oklch(52.4% 0.211 316.1);
Tailwind
colors: {
  custom: {
    50: '#ba73cf',
    500: '#9731b9',
    950: '#000000',
  },
}
SCSS
$custom: #9731b9;
$custom-light: #ba73cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9731b9",
  "rgb": {
    "r": 151,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 285,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.5242,
    "c": 0.21054,
    "h": 316.1
  },
  "luminance": 0.12279
}

Semantic roles & 50–950 ramp

primary
#9731B9
secondary
#90C87D
accent
#E1466D
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120914
muted
#817B82

Preview Lab

Preview with #9731B9

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

Preview Lab → · Contrast checker → · Palette generator →

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