#9D31BA#9D31BA

#9D31BA is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.3% C 0.214 H 318.1°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#9D31BA
RGBrgb(157, 49, 186)
HSLhsl(287, 58%, 46%)
HSVhsv(287, 74%, 73%)
CMYKcmyk(15.6%, 73.7%, 0%, 27.1%)
CIE-LABlab(42.63, 62.72, -50.79)
CIE-LCHlch(42.63, 80.71, 321.00°)
OKLaboklab(53.31% 0.159 -0.1427)
OKLCHoklch(53.31% 0.214 318.1)
XYZxyz(23.8646, 12.9110, 47.6799)
Luminance0.1291 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D31BA #4EBA31
analogous
#5831BA #9D31BA #BA3192
triadic
#9D31BA #BA9D31 #31BA9D
tetradic
#9D31BA #BA5831 #4EBA31 #3192BA
square
#9D31BA #BA5831 #4EBA31 #3192BA
split-complementary
#9D31BA #92BA31 #31BA58
monochromatic
#4B1759 #74248A #9D31BA #B856D2 #CC86DF

Accessibility & contrast

On white

5.86
#9D31BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#9D31BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D31BA
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D31BA#FFFFFF#000000##FFFFFF
##9D31BA1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBE
Deuteranopia (green-blind)
#3768B7
Tritanopia (blue-blind)
#9C4D73
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9d31ba;
/* rgb */ color: rgb(157, 49, 186);
/* oklch */ color: oklch(53.3% 0.214 318.1);
Tailwind
colors: {
  custom: {
    50: '#be74cf',
    500: '#9d31ba',
    950: '#000000',
  },
}
SCSS
$custom: #9d31ba;
$custom-light: #be74cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9d31ba",
  "rgb": {
    "r": 157,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 287.299,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.53314,
    "c": 0.21368,
    "h": 318.1
  },
  "luminance": 0.1291
}

Semantic roles & 50–950 ramp

primary
#9D31BA
secondary
#8EC97E
accent
#E24667
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130914
muted
#827B82

Preview Lab

Preview with #9D31BA

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

Preview Lab → · Contrast checker → · Palette generator →

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