#9731A9#9731A9

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

Color values

HEX#9731A9
RGBrgb(151, 49, 169)
HSLhsl(291, 55%, 43%)
HSVhsv(291, 71%, 66%)
CMYKcmyk(10.7%, 71%, 0%, 33.7%)
CIE-LABlab(40.64, 58.23, -43.98)
CIE-LCHlch(40.64, 72.97, 322.94°)
OKLaboklab(51.37% 0.1531 -0.1229)
OKLCHoklch(51.37% 0.196 321.2)
XYZxyz(21.0214, 11.6416, 38.6682)
Luminance0.1164 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9731A9 #43A931
analogous
#5B31A9 #9731A9 #A9317F
triadic
#9731A9 #A99731 #31A997
tetradic
#9731A9 #A95B31 #43A931 #317FA9
square
#9731A9 #A95B31 #43A931 #317FA9
split-complementary
#9731A9 #7FA931 #31A95B
monochromatic
#42154A #6D237A #9731A9 #B84CCB #CB7CD9

Accessibility & contrast

On white

6.31
#9731A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#9731A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9731A9
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9731A9#FFFFFF#000000##FFFFFF
##9731A91.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AC
Deuteranopia (green-blind)
#3F64A6
Tritanopia (blue-blind)
#98476A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9731a9;
/* rgb */ color: rgb(151, 49, 169);
/* oklch */ color: oklch(51.4% 0.196 321.2);
Tailwind
colors: {
  custom: {
    50: '#b973c3',
    500: '#9731a9',
    950: '#000000',
  },
}
SCSS
$custom: #9731a9;
$custom-light: #b973c3;
$custom-dark: #000000;
JSON
{
  "hex": "#9731a9",
  "rgb": {
    "r": 151,
    "g": 49,
    "b": 169
  },
  "hsl": {
    "h": 291,
    "s": 55.046,
    "l": 42.745
  },
  "oklch": {
    "l": 0.51371,
    "c": 0.19638,
    "h": 321.2
  },
  "luminance": 0.11641
}

Semantic roles & 50–950 ramp

primary
#9731A9
secondary
#80C174
accent
#DE4960
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120912
muted
#817B81

Preview Lab

Preview with #9731A9

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

Preview Lab → · Contrast checker → · Palette generator →

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