#9F31AA#9F31AA

#9F31AA is a mid, highly saturated purple. Relative luminance 0.125; OKLCH L 52.6% C 0.201 H 324.0°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#9F31AA
RGBrgb(159, 49, 170)
HSLhsl(295, 55%, 43%)
HSVhsv(295, 71%, 67%)
CMYKcmyk(6.5%, 71.2%, 0%, 33.3%)
CIE-LABlab(41.96, 60.19, -42.40)
CIE-LCHlch(41.96, 73.62, 324.84°)
OKLaboklab(52.58% 0.1625 -0.1181)
OKLCHoklch(52.58% 0.201 324)
XYZxyz(22.6515, 12.4712, 39.2365)
Luminance0.1247 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F31AA #3CAA31
analogous
#6231AA #9F31AA #AA3179
triadic
#9F31AA #AA9F31 #31AA9F
tetradic
#9F31AA #AA6231 #3CAA31 #3179AA
square
#9F31AA #AA6231 #3CAA31 #3179AA
split-complementary
#9F31AA #79AA31 #31AA62
monochromatic
#46164B #73237A #9F31AA #C04DCC #D17CD9

Accessibility & contrast

On white

6.01
#9F31AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#9F31AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F31AA
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F31AA#FFFFFF#000000##FFFFFF
##9F31AA1.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#095BAD
Deuteranopia (green-blind)
#4767A7
Tritanopia (blue-blind)
#A2466A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9f31aa;
/* rgb */ color: rgb(159, 49, 170);
/* oklch */ color: oklch(52.6% 0.201 324.0);
Tailwind
colors: {
  custom: {
    50: '#bf74c4',
    500: '#9f31aa',
    950: '#000000',
  },
}
SCSS
$custom: #9f31aa;
$custom-light: #bf74c4;
$custom-dark: #000000;
JSON
{
  "hex": "#9f31aa",
  "rgb": {
    "r": 159,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 294.545,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.5258,
    "c": 0.20085,
    "h": 324
  },
  "luminance": 0.1247
}

Semantic roles & 50–950 ramp

primary
#9F31AA
secondary
#7CC275
accent
#DF4957
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #9F31AA

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

Preview Lab → · Contrast checker → · Palette generator →

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