#9A31BA#9A31BA

#9A31BA is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 52.9% C 0.213 H 317.0°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#9A31BA
RGBrgb(154, 49, 186)
HSLhsl(286, 58%, 46%)
HSVhsv(286, 74%, 73%)
CMYKcmyk(17.2%, 73.7%, 0%, 27.1%)
CIE-LABlab(42.17, 62.12, -51.55)
CIE-LCHlch(42.17, 80.72, 320.31°)
OKLaboklab(52.9% 0.1554 -0.145)
OKLCHoklch(52.9% 0.213 317)
XYZxyz(23.2863, 12.6128, 47.6528)
Luminance0.1261 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A31BA #51BA31
analogous
#5531BA #9A31BA #BA3195
triadic
#9A31BA #BA9A31 #31BA9A
tetradic
#9A31BA #BA5531 #51BA31 #3195BA
square
#9A31BA #BA5531 #51BA31 #3195BA
split-complementary
#9A31BA #95BA31 #31BA55
monochromatic
#4A1759 #72248A #9A31BA #B556D2 #CA86DF

Accessibility & contrast

On white

5.96
#9A31BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#9A31BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A31BA
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A31BA#FFFFFF#000000##FFFFFF
##9A31BA1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBE
Deuteranopia (green-blind)
#3367B7
Tritanopia (blue-blind)
#984E73
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9a31ba;
/* rgb */ color: rgb(154, 49, 186);
/* oklch */ color: oklch(52.9% 0.213 317.0);
Tailwind
colors: {
  custom: {
    50: '#bc74cf',
    500: '#9a31ba',
    950: '#000000',
  },
}
SCSS
$custom: #9a31ba;
$custom-light: #bc74cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9a31ba",
  "rgb": {
    "r": 154,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 285.985,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.52899,
    "c": 0.21254,
    "h": 317
  },
  "luminance": 0.12612
}

Semantic roles & 50–950 ramp

primary
#9A31BA
secondary
#8FC97E
accent
#E2466B
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#120914
muted
#817B82

Preview Lab

Preview with #9A31BA

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

Preview Lab → · Contrast checker → · Palette generator →

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