#9A31BD#9A31BD

#9A31BD is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.1% C 0.215 H 316.1°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#9A31BD
RGBrgb(154, 49, 189)
HSLhsl(285, 59%, 47%)
HSVhsv(285, 74%, 74%)
CMYKcmyk(18.5%, 74.1%, 0%, 25.9%)
CIE-LABlab(42.37, 62.70, -52.99)
CIE-LCHlch(42.37, 82.09, 319.80°)
OKLaboklab(53.1% 0.155 -0.1492)
OKLCHoklch(53.1% 0.215 316.1)
XYZxyz(23.6086, 12.7417, 49.3500)
Luminance0.1274 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A31BD #54BD31
analogous
#5431BD #9A31BD #BD319A
triadic
#9A31BD #BD9A31 #31BD9A
tetradic
#9A31BD #BD5431 #54BD31 #319ABD
square
#9A31BD #BD5431 #54BD31 #319ABD
split-complementary
#9A31BD #9ABD31 #31BD54
monochromatic
#4B185C #72248C #9A31BD #B558D4 #CA88E0

Accessibility & contrast

On white

5.92
#9A31BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#9A31BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A31BD
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A31BD#FFFFFF#000000##FFFFFF
##9A31BD1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC1
Deuteranopia (green-blind)
#3067BA
Tritanopia (blue-blind)
#984F75
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9a31bd;
/* rgb */ color: rgb(154, 49, 189);
/* oklch */ color: oklch(53.1% 0.215 316.1);
Tailwind
colors: {
  custom: {
    50: '#bc74d2',
    500: '#9a31bd',
    950: '#000000',
  },
}
SCSS
$custom: #9a31bd;
$custom-light: #bc74d2;
$custom-dark: #000000;
JSON
{
  "hex": "#9a31bd",
  "rgb": {
    "r": 154,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 285,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.53102,
    "c": 0.2152,
    "h": 316.1
  },
  "luminance": 0.12741
}

Semantic roles & 50–950 ramp

primary
#9A31BD
secondary
#92CA80
accent
#E2466D
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #9A31BD

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

Preview Lab → · Contrast checker → · Palette generator →

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