#9731A3#9731A3

#9731A3 is a mid, vivid purple. Relative luminance 0.114; OKLCH L 51.0% C 0.191 H 323.3°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#9731A3
RGBrgb(151, 49, 163)
HSLhsl(294, 54%, 42%)
HSVhsv(294, 70%, 64%)
CMYKcmyk(7.4%, 69.9%, 0%, 36.1%)
CIE-LABlab(40.28, 57.12, -40.96)
CIE-LCHlch(40.28, 70.29, 324.35°)
OKLaboklab(51% 0.1533 -0.1142)
OKLCHoklch(51% 0.191 323.3)
XYZxyz(20.4711, 11.4215, 35.7695)
Luminance0.1142 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9731A3 #3DA331
analogous
#5E31A3 #9731A3 #A33176
triadic
#9731A3 #A39731 #31A397
tetradic
#9731A3 #A35E31 #3DA331 #3176A3
square
#9731A3 #A35E31 #3DA331 #3176A3
split-complementary
#9731A3 #76A331 #31A35E
monochromatic
#401545 #6B2374 #9731A3 #BB49C8 #CC78D6

Accessibility & contrast

On white

6.39
#9731A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#9731A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9731A3
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9731A3#FFFFFF#000000##FFFFFF
##9731A31.006.393.286.39
#FFFFFF6.391.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E57A6
Deuteranopia (green-blind)
#4363A0
Tritanopia (blue-blind)
#994466
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9731a3;
/* rgb */ color: rgb(151, 49, 163);
/* oklch */ color: oklch(51.0% 0.191 323.3);
Tailwind
colors: {
  custom: {
    50: '#b972bf',
    500: '#9731a3',
    950: '#000000',
  },
}
SCSS
$custom: #9731a3;
$custom-light: #b972bf;
$custom-dark: #000000;
JSON
{
  "hex": "#9731a3",
  "rgb": {
    "r": 151,
    "g": 49,
    "b": 163
  },
  "hsl": {
    "h": 293.684,
    "s": 53.774,
    "l": 41.569
  },
  "oklch": {
    "l": 0.50999,
    "c": 0.19117,
    "h": 323.3
  },
  "luminance": 0.1142
}

Semantic roles & 50–950 ramp

primary
#9731A3
secondary
#79BF71
accent
#DD4B5A
background
#FBF7FB
surface
#F7EDF7
border
#D0C8D0
text
#120912
muted
#817B81

Preview Lab

Preview with #9731A3

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

Preview Lab → · Contrast checker → · Palette generator →

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