#9D31BF#9D31BF

#9D31BF is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.6% C 0.218 H 316.6°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#9D31BF
RGBrgb(157, 49, 191)
HSLhsl(286, 59%, 47%)
HSVhsv(286, 74%, 75%)
CMYKcmyk(17.8%, 74.3%, 0%, 25.1%)
CIE-LABlab(42.95, 63.69, -53.20)
CIE-LCHlch(42.95, 82.98, 320.13°)
OKLaboklab(53.65% 0.1585 -0.1498)
OKLCHoklch(53.65% 0.218 316.6)
XYZxyz(24.4055, 13.1273, 50.5284)
Luminance0.1313 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D31BF #53BF31
analogous
#5631BF #9D31BF #BF319A
triadic
#9D31BF #BF9D31 #31BF9D
tetradic
#9D31BF #BF5631 #53BF31 #319ABF
square
#9D31BF #BF5631 #53BF31 #319ABF
split-complementary
#9D31BF #9ABF31 #31BF56
monochromatic
#4D185E #75258E #9D31BF #B759D4 #CC8AE1

Accessibility & contrast

On white

5.79
#9D31BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#9D31BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D31BF
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D31BF#FFFFFF#000000##FFFFFF
##9D31BF1.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC3
Deuteranopia (green-blind)
#3268BC
Tritanopia (blue-blind)
#9B4F76
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9d31bf;
/* rgb */ color: rgb(157, 49, 191);
/* oklch */ color: oklch(53.6% 0.218 316.6);
Tailwind
colors: {
  custom: {
    50: '#be74d3',
    500: '#9d31bf',
    950: '#000000',
  },
}
SCSS
$custom: #9d31bf;
$custom-light: #be74d3;
$custom-dark: #000000;
JSON
{
  "hex": "#9d31bf",
  "rgb": {
    "r": 157,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 285.634,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.53649,
    "c": 0.21805,
    "h": 316.6
  },
  "luminance": 0.13126
}

Semantic roles & 50–950 ramp

primary
#9D31BF
secondary
#93CB81
accent
#E2456B
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#130914
muted
#827B83

Preview Lab

Preview with #9D31BF

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

Preview Lab → · Contrast checker → · Palette generator →

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