#9731A4#9731A4

#9731A4 is a mid, vivid purple. Relative luminance 0.115; OKLCH L 51.1% C 0.192 H 323.0°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#9731A4
RGBrgb(151, 49, 164)
HSLhsl(293, 54%, 42%)
HSVhsv(293, 70%, 64%)
CMYKcmyk(7.9%, 70.1%, 0%, 35.7%)
CIE-LABlab(40.34, 57.30, -41.47)
CIE-LCHlch(40.34, 70.73, 324.11°)
OKLaboklab(51.06% 0.1533 -0.1156)
OKLCHoklch(51.06% 0.192 323)
XYZxyz(20.5610, 11.4575, 36.2433)
Luminance0.1146 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9731A4 #3EA431
analogous
#5D31A4 #9731A4 #A43178
triadic
#9731A4 #A49731 #31A497
tetradic
#9731A4 #A45D31 #3EA431 #3178A4
square
#9731A4 #A45D31 #3EA431 #3178A4
split-complementary
#9731A4 #78A431 #31A45D
monochromatic
#401546 #6C2375 #9731A4 #BA49C9 #CC79D7

Accessibility & contrast

On white

6.38
#9731A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#9731A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9731A4
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9731A4#FFFFFF#000000##FFFFFF
##9731A41.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B57A7
Deuteranopia (green-blind)
#4363A1
Tritanopia (blue-blind)
#994567
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9731a4;
/* rgb */ color: rgb(151, 49, 164);
/* oklch */ color: oklch(51.1% 0.192 323.0);
Tailwind
colors: {
  custom: {
    50: '#b972bf',
    500: '#9731a4',
    950: '#000000',
  },
}
SCSS
$custom: #9731a4;
$custom-light: #b972bf;
$custom-dark: #000000;
JSON
{
  "hex": "#9731a4",
  "rgb": {
    "r": 151,
    "g": 49,
    "b": 164
  },
  "hsl": {
    "h": 293.217,
    "s": 53.991,
    "l": 41.765
  },
  "oklch": {
    "l": 0.5106,
    "c": 0.19203,
    "h": 323
  },
  "luminance": 0.11456
}

Semantic roles & 50–950 ramp

primary
#9731A4
secondary
#7ABF72
accent
#DD4A5B
background
#FBF7FB
surface
#F7EDF7
border
#D0C8D0
text
#120912
muted
#817B81

Preview Lab

Preview with #9731A4

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

Preview Lab → · Contrast checker → · Palette generator →

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