#9D31BD#9D31BD

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

Color values

HEX#9D31BD
RGBrgb(157, 49, 189)
HSLhsl(286, 59%, 47%)
HSVhsv(286, 74%, 74%)
CMYKcmyk(16.9%, 74.1%, 0%, 25.9%)
CIE-LABlab(42.82, 63.30, -52.24)
CIE-LCHlch(42.82, 82.07, 320.47°)
OKLaboklab(53.51% 0.1587 -0.1469)
OKLCHoklch(53.51% 0.216 317.2)
XYZxyz(24.1869, 13.0399, 49.3771)
Luminance0.1304 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D31BD #51BD31
analogous
#5731BD #9D31BD #BD3197
triadic
#9D31BD #BD9D31 #31BD9D
tetradic
#9D31BD #BD5731 #51BD31 #3197BD
square
#9D31BD #BD5731 #51BD31 #3197BD
split-complementary
#9D31BD #97BD31 #31BD57
monochromatic
#4C185C #75248C #9D31BD #B758D4 #CC88E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D31BD#FFFFFF#000000##FFFFFF
##9D31BD1.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)
#005FC1
Deuteranopia (green-blind)
#3468BA
Tritanopia (blue-blind)
#9B4F75
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9d31bd;
/* rgb */ color: rgb(157, 49, 189);
/* oklch */ color: oklch(53.5% 0.216 317.2);
Tailwind
colors: {
  custom: {
    50: '#be74d2',
    500: '#9d31bd',
    950: '#000000',
  },
}
SCSS
$custom: #9d31bd;
$custom-light: #be74d2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d31bd",
  "rgb": {
    "r": 157,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 286.286,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.53514,
    "c": 0.21629,
    "h": 317.2
  },
  "luminance": 0.13039
}

Semantic roles & 50–950 ramp

primary
#9D31BD
secondary
#91CA80
accent
#E24669
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130914
muted
#827B82

Preview Lab

Preview with #9D31BD

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

Preview Lab → · Contrast checker → · Palette generator →

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