#9F31B7#9F31B7

#9F31B7 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.4% C 0.212 H 319.8°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#9F31B7
RGBrgb(159, 49, 183)
HSLhsl(289, 58%, 45%)
HSVhsv(289, 73%, 72%)
CMYKcmyk(13.1%, 73.2%, 0%, 28.2%)
CIE-LABlab(42.74, 62.57, -48.83)
CIE-LCHlch(42.74, 79.36, 322.03°)
OKLaboklab(53.4% 0.1617 -0.1369)
OKLCHoklch(53.4% 0.212 319.8)
XYZxyz(23.9426, 12.9876, 46.0363)
Luminance0.1299 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F31B7 #49B731
analogous
#5C31B7 #9F31B7 #B7318C
triadic
#9F31B7 #B79F31 #31B79F
tetradic
#9F31B7 #B75C31 #49B731 #318CB7
square
#9F31B7 #B75C31 #49B731 #318CB7
split-complementary
#9F31B7 #8CB731 #31B75C
monochromatic
#4B1756 #752487 #9F31B7 #BB54D1 #CE84DE

Accessibility & contrast

On white

5.84
#9F31B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#9F31B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F31B7
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F31B7#FFFFFF#000000##FFFFFF
##9F31B71.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBB
Deuteranopia (green-blind)
#3C69B4
Tritanopia (blue-blind)
#9F4B72
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9f31b7;
/* rgb */ color: rgb(159, 49, 183);
/* oklch */ color: oklch(53.4% 0.212 319.8);
Tailwind
colors: {
  custom: {
    50: '#bf74cd',
    500: '#9f31b7',
    950: '#000000',
  },
}
SCSS
$custom: #9f31b7;
$custom-light: #bf74cd;
$custom-dark: #000000;
JSON
{
  "hex": "#9f31b7",
  "rgb": {
    "r": 159,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 289.254,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.53397,
    "c": 0.21188,
    "h": 319.8
  },
  "luminance": 0.12986
}

Semantic roles & 50–950 ramp

primary
#9F31B7
secondary
#8AC87C
accent
#E14762
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130913
muted
#827B82

Preview Lab

Preview with #9F31B7

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

Preview Lab → · Contrast checker → · Palette generator →

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