#9B31BD#9B31BD

#9B31BD is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.2% C 0.216 H 316.5°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#9B31BD
RGBrgb(155, 49, 189)
HSLhsl(285, 59%, 47%)
HSVhsv(285, 74%, 74%)
CMYKcmyk(18%, 74.1%, 0%, 25.9%)
CIE-LABlab(42.52, 62.90, -52.74)
CIE-LCHlch(42.52, 82.08, 320.02°)
OKLaboklab(53.24% 0.1563 -0.1485)
OKLCHoklch(53.24% 0.216 316.5)
XYZxyz(23.7998, 12.8403, 49.3590)
Luminance0.1284 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B31BD #53BD31
analogous
#5531BD #9B31BD #BD3199
triadic
#9B31BD #BD9B31 #31BD9B
tetradic
#9B31BD #BD5531 #53BD31 #3199BD
square
#9B31BD #BD5531 #53BD31 #3199BD
split-complementary
#9B31BD #99BD31 #31BD55
monochromatic
#4B185C #73248C #9B31BD #B558D4 #CB88E0

Accessibility & contrast

On white

5.89
#9B31BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#9B31BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B31BD
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B31BD#FFFFFF#000000##FFFFFF
##9B31BD1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC1
Deuteranopia (green-blind)
#3167BA
Tritanopia (blue-blind)
#994F75
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9b31bd;
/* rgb */ color: rgb(155, 49, 189);
/* oklch */ color: oklch(53.2% 0.216 316.5);
Tailwind
colors: {
  custom: {
    50: '#bd74d2',
    500: '#9b31bd',
    950: '#000000',
  },
}
SCSS
$custom: #9b31bd;
$custom-light: #bd74d2;
$custom-dark: #000000;
JSON
{
  "hex": "#9b31bd",
  "rgb": {
    "r": 155,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 285.429,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.53239,
    "c": 0.21556,
    "h": 316.5
  },
  "luminance": 0.12839
}

Semantic roles & 50–950 ramp

primary
#9B31BD
secondary
#92CA80
accent
#E2466C
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #9B31BD

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

Preview Lab → · Contrast checker → · Palette generator →

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