#9F31B8#9F31B8

#9F31B8 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.5% C 0.213 H 319.4°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#9F31B8
RGBrgb(159, 49, 184)
HSLhsl(289, 58%, 46%)
HSVhsv(289, 73%, 72%)
CMYKcmyk(13.6%, 73.4%, 0%, 27.8%)
CIE-LABlab(42.81, 62.76, -49.31)
CIE-LCHlch(42.81, 79.81, 321.84°)
OKLaboklab(53.46% 0.1616 -0.1383)
OKLCHoklch(53.46% 0.213 319.4)
XYZxyz(24.0470, 13.0294, 46.5864)
Luminance0.1303 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F31B8 #4AB831
analogous
#5B31B8 #9F31B8 #B8318D
triadic
#9F31B8 #B89F31 #31B89F
tetradic
#9F31B8 #B85B31 #4AB831 #318DB8
square
#9F31B8 #B85B31 #4AB831 #318DB8
split-complementary
#9F31B8 #8DB831 #31B85B
monochromatic
#4B1757 #752488 #9F31B8 #BA55D2 #CE85DE

Accessibility & contrast

On white

5.82
#9F31B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#9F31B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F31B8
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F31B8#FFFFFF#000000##FFFFFF
##9F31B81.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBC
Deuteranopia (green-blind)
#3C69B5
Tritanopia (blue-blind)
#9F4C72
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9f31b8;
/* rgb */ color: rgb(159, 49, 184);
/* oklch */ color: oklch(53.5% 0.213 319.4);
Tailwind
colors: {
  custom: {
    50: '#bf74ce',
    500: '#9f31b8',
    950: '#000000',
  },
}
SCSS
$custom: #9f31b8;
$custom-light: #bf74ce;
$custom-dark: #000000;
JSON
{
  "hex": "#9f31b8",
  "rgb": {
    "r": 159,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 288.889,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.53462,
    "c": 0.21274,
    "h": 319.4
  },
  "luminance": 0.13028
}

Semantic roles & 50–950 ramp

primary
#9F31B8
secondary
#8BC87D
accent
#E14763
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130914
muted
#827B82

Preview Lab

Preview with #9F31B8

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

Preview Lab → · Contrast checker → · Palette generator →

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