#9F31BE#9F31BE

#9F31BE is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 53.9% C 0.218 H 317.6°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#9F31BE
RGBrgb(159, 49, 190)
HSLhsl(287, 59%, 47%)
HSVhsv(287, 74%, 75%)
CMYKcmyk(16.3%, 74.2%, 0%, 25.5%)
CIE-LABlab(43.19, 63.89, -52.21)
CIE-LCHlch(43.19, 82.51, 320.74°)
OKLaboklab(53.86% 0.161 -0.1468)
OKLCHoklch(53.86% 0.218 317.6)
XYZxyz(24.6893, 13.2864, 49.9692)
Luminance0.1328 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F31BE #50BE31
analogous
#5931BE #9F31BE #BE3196
triadic
#9F31BE #BE9F31 #31BE9F
tetradic
#9F31BE #BE5931 #50BE31 #3196BE
square
#9F31BE #BE5931 #50BE31 #3196BE
split-complementary
#9F31BE #96BE31 #31BE59
monochromatic
#4E185D #76248D #9F31BE #B958D4 #CD89E1

Accessibility & contrast

On white

5.74
#9F31BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#9F31BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F31BE
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F31BE#FFFFFF#000000##FFFFFF
##9F31BE1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC2
Deuteranopia (green-blind)
#3669BB
Tritanopia (blue-blind)
#9E4F75
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9f31be;
/* rgb */ color: rgb(159, 49, 190);
/* oklch */ color: oklch(53.9% 0.218 317.6);
Tailwind
colors: {
  custom: {
    50: '#bf74d2',
    500: '#9f31be',
    950: '#000000',
  },
}
SCSS
$custom: #9f31be;
$custom-light: #bf74d2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f31be",
  "rgb": {
    "r": 159,
    "g": 49,
    "b": 190
  },
  "hsl": {
    "h": 286.809,
    "s": 58.996,
    "l": 46.863
  },
  "oklch": {
    "l": 0.53857,
    "c": 0.21791,
    "h": 317.6
  },
  "luminance": 0.13285
}

Semantic roles & 50–950 ramp

primary
#9F31BE
secondary
#91CA80
accent
#E24668
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#130914
muted
#827B83

Preview Lab

Preview with #9F31BE

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

Preview Lab → · Contrast checker → · Palette generator →

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