#9F31AE#9F31AE

#9F31AE is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 52.8% C 0.204 H 322.6°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#9F31AE
RGBrgb(159, 49, 174)
HSLhsl(293, 56%, 44%)
HSVhsv(293, 72%, 68%)
CMYKcmyk(8.6%, 71.8%, 0%, 31.8%)
CIE-LABlab(42.19, 60.91, -44.40)
CIE-LCHlch(42.19, 75.37, 323.91°)
OKLaboklab(52.83% 0.1623 -0.1239)
OKLCHoklch(52.83% 0.204 322.6)
XYZxyz(23.0356, 12.6249, 41.2597)
Luminance0.1262 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F31AE #40AE31
analogous
#6031AE #9F31AE #AE317E
triadic
#9F31AE #AE9F31 #31AE9F
tetradic
#9F31AE #AE6031 #40AE31 #317EAE
square
#9F31AE #AE6031 #40AE31 #317EAE
split-complementary
#9F31AE #7EAE31 #31AE60
monochromatic
#48164E #73247E #9F31AE #BE4FCD #D07FDB

Accessibility & contrast

On white

5.96
#9F31AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#9F31AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F31AE
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F31AE#FFFFFF#000000##FFFFFF
##9F31AE1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB2
Deuteranopia (green-blind)
#4468AB
Tritanopia (blue-blind)
#A1476D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9f31ae;
/* rgb */ color: rgb(159, 49, 174);
/* oklch */ color: oklch(52.8% 0.204 322.6);
Tailwind
colors: {
  custom: {
    50: '#bf74c7',
    500: '#9f31ae',
    950: '#000000',
  },
}
SCSS
$custom: #9f31ae;
$custom-light: #bf74c7;
$custom-dark: #000000;
JSON
{
  "hex": "#9f31ae",
  "rgb": {
    "r": 159,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 292.8,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.52826,
    "c": 0.20421,
    "h": 322.6
  },
  "luminance": 0.12624
}

Semantic roles & 50–950 ramp

primary
#9F31AE
secondary
#80C477
accent
#DF485B
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #9F31AE

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

Preview Lab → · Contrast checker → · Palette generator →

#9F31AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva