#9731AF#9731AF

#9731AF is a mid, highly saturated purple. Relative luminance 0.119; OKLCH L 51.8% C 0.202 H 319.2°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#9731AF
RGBrgb(151, 49, 175)
HSLhsl(289, 56%, 44%)
HSVhsv(289, 72%, 69%)
CMYKcmyk(13.7%, 72%, 0%, 31.4%)
CIE-LABlab(41.01, 59.37, -46.95)
CIE-LCHlch(41.01, 75.69, 321.66°)
OKLaboklab(51.76% 0.1528 -0.1316)
OKLCHoklch(51.76% 0.202 319.2)
XYZxyz(21.5977, 11.8721, 41.7030)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9731AF #49AF31
analogous
#5831AF #9731AF #AF3188
triadic
#9731AF #AF9731 #31AF97
tetradic
#9731AF #AF5831 #49AF31 #3188AF
square
#9731AF #AF5831 #49AF31 #3188AF
split-complementary
#9731AF #88AF31 #31AF58
monochromatic
#44164F #6E247F #9731AF #B64FCE #CA7FDB

Accessibility & contrast

On white

6.22
#9731AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#9731AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9731AF
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9731AF#FFFFFF#000000##FFFFFF
##9731AF1.006.223.376.22
#FFFFFF6.221.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB3
Deuteranopia (green-blind)
#3A64AC
Tritanopia (blue-blind)
#974A6D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9731af;
/* rgb */ color: rgb(151, 49, 175);
/* oklch */ color: oklch(51.8% 0.202 319.2);
Tailwind
colors: {
  custom: {
    50: '#b973c7',
    500: '#9731af',
    950: '#000000',
  },
}
SCSS
$custom: #9731af;
$custom-light: #b973c7;
$custom-dark: #000000;
JSON
{
  "hex": "#9731af",
  "rgb": {
    "r": 151,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 288.571,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.51756,
    "c": 0.20165,
    "h": 319.2
  },
  "luminance": 0.11871
}

Semantic roles & 50–950 ramp

primary
#9731AF
secondary
#86C478
accent
#E04865
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9731AF

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

Preview Lab → · Contrast checker → · Palette generator →

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