#9F31AF#9F31AF

#9F31AF is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 52.9% C 0.205 H 322.3°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#9F31AF
RGBrgb(159, 49, 175)
HSLhsl(292, 56%, 44%)
HSVhsv(292, 72%, 69%)
CMYKcmyk(9.1%, 72%, 0%, 31.4%)
CIE-LABlab(42.25, 61.09, -44.89)
CIE-LCHlch(42.25, 75.81, 323.69°)
OKLaboklab(52.89% 0.1623 -0.1254)
OKLCHoklch(52.89% 0.205 322.3)
XYZxyz(23.1335, 12.6640, 41.7750)
Luminance0.1266 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F31AF #41AF31
analogous
#6031AF #9F31AF #AF3180
triadic
#9F31AF #AF9F31 #31AF9F
tetradic
#9F31AF #AF6031 #41AF31 #3180AF
square
#9F31AF #AF6031 #41AF31 #3180AF
split-complementary
#9F31AF #80AF31 #31AF60
monochromatic
#48164F #74247F #9F31AF #BE4FCE #D07FDB

Accessibility & contrast

On white

5.94
#9F31AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#9F31AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F31AF
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F31AF#FFFFFF#000000##FFFFFF
##9F31AF1.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB3
Deuteranopia (green-blind)
#4368AC
Tritanopia (blue-blind)
#A1486D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9f31af;
/* rgb */ color: rgb(159, 49, 175);
/* oklch */ color: oklch(52.9% 0.205 322.3);
Tailwind
colors: {
  custom: {
    50: '#bf74c7',
    500: '#9f31af',
    950: '#000000',
  },
}
SCSS
$custom: #9f31af;
$custom-light: #bf74c7;
$custom-dark: #000000;
JSON
{
  "hex": "#9f31af",
  "rgb": {
    "r": 159,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 292.381,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.52888,
    "c": 0.20506,
    "h": 322.3
  },
  "luminance": 0.12663
}

Semantic roles & 50–950 ramp

primary
#9F31AF
secondary
#81C478
accent
#E0485B
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #9F31AF

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

Preview Lab → · Contrast checker → · Palette generator →

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