#9731A8#9731A8

#9731A8 is a mid, vivid purple. Relative luminance 0.116; OKLCH L 51.3% C 0.196 H 321.6°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#9731A8
RGBrgb(151, 49, 168)
HSLhsl(291, 55%, 43%)
HSVhsv(291, 71%, 66%)
CMYKcmyk(10.1%, 70.8%, 0%, 34.1%)
CIE-LABlab(40.58, 58.05, -43.48)
CIE-LCHlch(40.58, 72.52, 323.17°)
OKLaboklab(51.31% 0.1532 -0.1215)
OKLCHoklch(51.31% 0.196 321.6)
XYZxyz(20.9279, 11.6042, 38.1757)
Luminance0.1160 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9731A8 #42A831
analogous
#5C31A8 #9731A8 #A8317D
triadic
#9731A8 #A89731 #31A897
tetradic
#9731A8 #A85C31 #42A831 #317DA8
square
#9731A8 #A85C31 #42A831 #317DA8
split-complementary
#9731A8 #7DA831 #31A85C
monochromatic
#421549 #6C2379 #9731A8 #B84CCB #CB7BD8

Accessibility & contrast

On white

6.32
#9731A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#9731A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9731A8
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9731A8#FFFFFF#000000##FFFFFF
##9731A81.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AB
Deuteranopia (green-blind)
#4063A5
Tritanopia (blue-blind)
#984669
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9731a8;
/* rgb */ color: rgb(151, 49, 168);
/* oklch */ color: oklch(51.3% 0.196 321.6);
Tailwind
colors: {
  custom: {
    50: '#b973c2',
    500: '#9731a8',
    950: '#000000',
  },
}
SCSS
$custom: #9731a8;
$custom-light: #b973c2;
$custom-dark: #000000;
JSON
{
  "hex": "#9731a8",
  "rgb": {
    "r": 151,
    "g": 49,
    "b": 168
  },
  "hsl": {
    "h": 291.429,
    "s": 54.839,
    "l": 42.549
  },
  "oklch": {
    "l": 0.51309,
    "c": 0.19551,
    "h": 321.6
  },
  "luminance": 0.11603
}

Semantic roles & 50–950 ramp

primary
#9731A8
secondary
#7FC174
accent
#DE4A5F
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120912
muted
#817B81

Preview Lab

Preview with #9731A8

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

Preview Lab → · Contrast checker → · Palette generator →

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