#9731A2#9731A2

#9731A2 is a mid, vivid purple. Relative luminance 0.114; OKLCH L 50.9% C 0.190 H 323.7°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#9731A2
RGBrgb(151, 49, 162)
HSLhsl(294, 54%, 41%)
HSVhsv(294, 70%, 64%)
CMYKcmyk(6.8%, 69.8%, 0%, 36.5%)
CIE-LABlab(40.22, 56.94, -40.46)
CIE-LCHlch(40.22, 69.85, 324.60°)
OKLaboklab(50.94% 0.1534 -0.1127)
OKLCHoklch(50.94% 0.19 323.7)
XYZxyz(20.3818, 11.3858, 35.2995)
Luminance0.1139 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9731A2 #3CA231
analogous
#5F31A2 #9731A2 #A23175
triadic
#9731A2 #A29731 #31A297
tetradic
#9731A2 #A25F31 #3CA231 #3175A2
square
#9731A2 #A25F31 #3CA231 #3175A2
split-complementary
#9731A2 #75A231 #31A25F
monochromatic
#3F1544 #6B2373 #9731A2 #BB48C8 #CD77D6

Accessibility & contrast

On white

6.41
#9731A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9731A2
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9731A2#FFFFFF#000000##FFFFFF
##9731A21.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1157A5
Deuteranopia (green-blind)
#44639F
Tritanopia (blue-blind)
#9A4466
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9731a2;
/* rgb */ color: rgb(151, 49, 162);
/* oklch */ color: oklch(50.9% 0.190 323.7);
Tailwind
colors: {
  custom: {
    50: '#b972be',
    500: '#9731a2',
    950: '#000000',
  },
}
SCSS
$custom: #9731a2;
$custom-light: #b972be;
$custom-dark: #000000;
JSON
{
  "hex": "#9731a2",
  "rgb": {
    "r": 151,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 294.159,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.50938,
    "c": 0.19031,
    "h": 323.7
  },
  "luminance": 0.11385
}

Semantic roles & 50–950 ramp

primary
#9731A2
secondary
#78BE71
accent
#DD4B59
background
#FBF7FB
surface
#F7EDF7
border
#D0C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #9731A2

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

Preview Lab → · Contrast checker → · Palette generator →

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