#9731C5#9731C5

#9731C5 is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.3% C 0.221 H 312.7°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#9731C5
RGBrgb(151, 49, 197)
HSLhsl(281, 60%, 48%)
HSVhsv(281, 75%, 77%)
CMYKcmyk(23.4%, 75.1%, 0%, 22.7%)
CIE-LABlab(42.47, 63.72, -57.52)
CIE-LCHlch(42.47, 85.84, 317.93°)
OKLaboklab(53.26% 0.1501 -0.1626)
OKLCHoklch(53.26% 0.221 312.7)
XYZxyz(23.9370, 12.8079, 54.0237)
Luminance0.1281 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9731C5 #5FC531
analogous
#4D31C5 #9731C5 #C531A9
triadic
#9731C5 #C59731 #31C597
tetradic
#9731C5 #C54D31 #5FC531 #31A9C5
square
#9731C5 #C54D31 #5FC531 #31A9C5
split-complementary
#9731C5 #A9C531 #31C54D
monochromatic
#4C1963 #712594 #9731C5 #B15DD7 #C88EE3

Accessibility & contrast

On white

5.90
#9731C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#9731C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9731C5
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9731C5#FFFFFF#000000##FFFFFF
##9731C51.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC9
Deuteranopia (green-blind)
#1E66C2
Tritanopia (blue-blind)
#925379
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9731c5;
/* rgb */ color: rgb(151, 49, 197);
/* oklch */ color: oklch(53.3% 0.221 312.7);
Tailwind
colors: {
  custom: {
    50: '#ba74d7',
    500: '#9731c5',
    950: '#000000',
  },
}
SCSS
$custom: #9731c5;
$custom-light: #ba74d7;
$custom-dark: #000000;
JSON
{
  "hex": "#9731c5",
  "rgb": {
    "r": 151,
    "g": 49,
    "b": 197
  },
  "hsl": {
    "h": 281.351,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.53256,
    "c": 0.22133,
    "h": 312.7
  },
  "luminance": 0.12807
}

Semantic roles & 50–950 ramp

primary
#9731C5
secondary
#9BCD85
accent
#E34476
background
#FBF7FD
surface
#F7EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #9731C5

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

Preview Lab → · Contrast checker → · Palette generator →

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