#9731B0#9731B0

#9731B0 is a mid, highly saturated purple. Relative luminance 0.119; OKLCH L 51.8% C 0.203 H 318.9°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#9731B0
RGBrgb(151, 49, 176)
HSLhsl(288, 56%, 44%)
HSVhsv(288, 72%, 69%)
CMYKcmyk(14.2%, 72.2%, 0%, 31%)
CIE-LABlab(41.08, 59.56, -47.44)
CIE-LCHlch(41.08, 76.15, 321.46°)
OKLaboklab(51.82% 0.1527 -0.1331)
OKLCHoklch(51.82% 0.203 318.9)
XYZxyz(21.6962, 11.9115, 42.2222)
Luminance0.1191 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9731B0 #4AB031
analogous
#5831B0 #9731B0 #B0318A
triadic
#9731B0 #B09731 #31B097
tetradic
#9731B0 #B05831 #4AB031 #318AB0
square
#9731B0 #B05831 #4AB031 #318AB0
split-complementary
#9731B0 #8AB031 #31B058
monochromatic
#451650 #6E2480 #9731B0 #B550CE #CA80DC

Accessibility & contrast

On white

6.21
#9731B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#9731B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9731B0
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9731B0#FFFFFF#000000##FFFFFF
##9731B01.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB4
Deuteranopia (green-blind)
#3964AD
Tritanopia (blue-blind)
#974A6E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9731b0;
/* rgb */ color: rgb(151, 49, 176);
/* oklch */ color: oklch(51.8% 0.203 318.9);
Tailwind
colors: {
  custom: {
    50: '#b973c8',
    500: '#9731b0',
    950: '#000000',
  },
}
SCSS
$custom: #9731b0;
$custom-light: #b973c8;
$custom-dark: #000000;
JSON
{
  "hex": "#9731b0",
  "rgb": {
    "r": 151,
    "g": 49,
    "b": 176
  },
  "hsl": {
    "h": 288.189,
    "s": 56.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.51821,
    "c": 0.20254,
    "h": 318.9
  },
  "luminance": 0.11911
}

Semantic roles & 50–950 ramp

primary
#9731B0
secondary
#87C578
accent
#E04866
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9731B0

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

Preview Lab → · Contrast checker → · Palette generator →

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