#9D31BB#9D31BB

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

Color values

HEX#9D31BB
RGBrgb(157, 49, 187)
HSLhsl(287, 58%, 46%)
HSVhsv(287, 74%, 73%)
CMYKcmyk(16%, 73.8%, 0%, 26.7%)
CIE-LABlab(42.69, 62.92, -51.27)
CIE-LCHlch(42.69, 81.16, 320.82°)
OKLaboklab(53.38% 0.1589 -0.1441)
OKLCHoklch(53.38% 0.215 317.8)
XYZxyz(23.9713, 12.9536, 48.2417)
Luminance0.1295 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D31BB #4FBB31
analogous
#5831BB #9D31BB #BB3194
triadic
#9D31BB #BB9D31 #31BB9D
tetradic
#9D31BB #BB5831 #4FBB31 #3194BB
square
#9D31BB #BB5831 #4FBB31 #3194BB
split-complementary
#9D31BB #94BB31 #31BB58
monochromatic
#4C185A #74248B #9D31BB #B856D3 #CC87E0

Accessibility & contrast

On white

5.85
#9D31BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9D31BB
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D31BB#FFFFFF#000000##FFFFFF
##9D31BB1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBF
Deuteranopia (green-blind)
#3668B8
Tritanopia (blue-blind)
#9C4E74
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9d31bb;
/* rgb */ color: rgb(157, 49, 187);
/* oklch */ color: oklch(53.4% 0.215 317.8);
Tailwind
colors: {
  custom: {
    50: '#be74d0',
    500: '#9d31bb',
    950: '#000000',
  },
}
SCSS
$custom: #9d31bb;
$custom-light: #be74d0;
$custom-dark: #000000;
JSON
{
  "hex": "#9d31bb",
  "rgb": {
    "r": 157,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 286.957,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.5338,
    "c": 0.21455,
    "h": 317.8
  },
  "luminance": 0.12953
}

Semantic roles & 50–950 ramp

primary
#9D31BB
secondary
#8FC97F
accent
#E24668
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130914
muted
#827B82

Preview Lab

Preview with #9D31BB

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

Preview Lab → · Contrast checker → · Palette generator →

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