#9D31BC#9D31BC

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

Color values

HEX#9D31BC
RGBrgb(157, 49, 188)
HSLhsl(287, 59%, 46%)
HSVhsv(287, 74%, 74%)
CMYKcmyk(16.5%, 73.9%, 0%, 26.3%)
CIE-LABlab(42.76, 63.11, -51.76)
CIE-LCHlch(42.76, 81.62, 320.64°)
OKLaboklab(53.45% 0.1588 -0.1455)
OKLCHoklch(53.45% 0.215 317.5)
XYZxyz(24.0787, 12.9966, 48.8075)
Luminance0.1300 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D31BC #50BC31
analogous
#5831BC #9D31BC #BC3196
triadic
#9D31BC #BC9D31 #31BC9D
tetradic
#9D31BC #BC5831 #50BC31 #3196BC
square
#9D31BC #BC5831 #50BC31 #3196BC
split-complementary
#9D31BC #96BC31 #31BC58
monochromatic
#4C185B #74248B #9D31BC #B857D3 #CC88E0

Accessibility & contrast

On white

5.83
#9D31BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#9D31BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D31BC
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D31BC#FFFFFF#000000##FFFFFF
##9D31BC1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC0
Deuteranopia (green-blind)
#3568B9
Tritanopia (blue-blind)
#9C4E74
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9d31bc;
/* rgb */ color: rgb(157, 49, 188);
/* oklch */ color: oklch(53.4% 0.215 317.5);
Tailwind
colors: {
  custom: {
    50: '#be74d1',
    500: '#9d31bc',
    950: '#000000',
  },
}
SCSS
$custom: #9d31bc;
$custom-light: #be74d1;
$custom-dark: #000000;
JSON
{
  "hex": "#9d31bc",
  "rgb": {
    "r": 157,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 286.619,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.53447,
    "c": 0.21542,
    "h": 317.5
  },
  "luminance": 0.12996
}

Semantic roles & 50–950 ramp

primary
#9D31BC
secondary
#90CA7F
accent
#E24669
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130914
muted
#827B82

Preview Lab

Preview with #9D31BC

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

Preview Lab → · Contrast checker → · Palette generator →

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