#9B31BF#9B31BF

#9B31BF is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.4% C 0.217 H 315.9°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#9B31BF
RGBrgb(155, 49, 191)
HSLhsl(285, 59%, 47%)
HSVhsv(285, 74%, 75%)
CMYKcmyk(18.8%, 74.3%, 0%, 25.1%)
CIE-LABlab(42.65, 63.29, -53.70)
CIE-LCHlch(42.65, 83.00, 319.69°)
OKLaboklab(53.37% 0.156 -0.1513)
OKLCHoklch(53.37% 0.217 315.9)
XYZxyz(24.0184, 12.9277, 50.5102)
Luminance0.1293 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B31BF #55BF31
analogous
#5431BF #9B31BF #BF319C
triadic
#9B31BF #BF9B31 #31BF9B
tetradic
#9B31BF #BF5431 #55BF31 #319CBF
square
#9B31BF #BF5431 #55BF31 #319CBF
split-complementary
#9B31BF #9CBF31 #31BF54
monochromatic
#4C185E #73258E #9B31BF #B559D4 #CB8AE1

Accessibility & contrast

On white

5.86
#9B31BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#9B31BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B31BF
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B31BF#FFFFFF#000000##FFFFFF
##9B31BF1.005.863.595.86
#FFFFFF5.861.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC3
Deuteranopia (green-blind)
#2F68BC
Tritanopia (blue-blind)
#985076
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9b31bf;
/* rgb */ color: rgb(155, 49, 191);
/* oklch */ color: oklch(53.4% 0.217 315.9);
Tailwind
colors: {
  custom: {
    50: '#bd74d3',
    500: '#9b31bf',
    950: '#000000',
  },
}
SCSS
$custom: #9b31bf;
$custom-light: #bd74d3;
$custom-dark: #000000;
JSON
{
  "hex": "#9b31bf",
  "rgb": {
    "r": 155,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 284.789,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.53375,
    "c": 0.21732,
    "h": 315.9
  },
  "luminance": 0.12927
}

Semantic roles & 50–950 ramp

primary
#9B31BF
secondary
#94CB81
accent
#E2456D
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#130914
muted
#827B83

Preview Lab

Preview with #9B31BF

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

Preview Lab → · Contrast checker → · Palette generator →

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