#9A31BB#9A31BB

#9A31BB is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.0% C 0.213 H 316.7°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#9A31BB
RGBrgb(154, 49, 187)
HSLhsl(286, 58%, 46%)
HSVhsv(286, 74%, 73%)
CMYKcmyk(17.6%, 73.8%, 0%, 26.7%)
CIE-LABlab(42.24, 62.31, -52.03)
CIE-LCHlch(42.24, 81.18, 320.14°)
OKLaboklab(52.97% 0.1553 -0.1464)
OKLCHoklch(52.97% 0.213 316.7)
XYZxyz(23.3930, 12.6555, 48.2146)
Luminance0.1265 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A31BB #52BB31
analogous
#5531BB #9A31BB #BB3197
triadic
#9A31BB #BB9A31 #31BB9A
tetradic
#9A31BB #BB5531 #52BB31 #3197BB
square
#9A31BB #BB5531 #52BB31 #3197BB
split-complementary
#9A31BB #97BB31 #31BB55
monochromatic
#4A185A #72248B #9A31BB #B556D3 #CA87E0

Accessibility & contrast

On white

5.95
#9A31BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#9A31BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A31BB
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A31BB#FFFFFF#000000##FFFFFF
##9A31BB1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBF
Deuteranopia (green-blind)
#3267B8
Tritanopia (blue-blind)
#984E74
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9a31bb;
/* rgb */ color: rgb(154, 49, 187);
/* oklch */ color: oklch(53.0% 0.213 316.7);
Tailwind
colors: {
  custom: {
    50: '#bc74d0',
    500: '#9a31bb',
    950: '#000000',
  },
}
SCSS
$custom: #9a31bb;
$custom-light: #bc74d0;
$custom-dark: #000000;
JSON
{
  "hex": "#9a31bb",
  "rgb": {
    "r": 154,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 285.652,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.52967,
    "c": 0.21343,
    "h": 316.7
  },
  "luminance": 0.12655
}

Semantic roles & 50–950 ramp

primary
#9A31BB
secondary
#90C97F
accent
#E2466B
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#120914
muted
#817B82

Preview Lab

Preview with #9A31BB

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

Preview Lab → · Contrast checker → · Palette generator →

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