#9A31BC#9A31BC

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

Color values

HEX#9A31BC
RGBrgb(154, 49, 188)
HSLhsl(285, 59%, 46%)
HSVhsv(285, 74%, 74%)
CMYKcmyk(18.1%, 73.9%, 0%, 26.3%)
CIE-LABlab(42.31, 62.51, -52.51)
CIE-LCHlch(42.31, 81.63, 319.97°)
OKLaboklab(53.03% 0.1552 -0.1478)
OKLCHoklch(53.03% 0.214 316.4)
XYZxyz(23.5004, 12.6984, 48.7803)
Luminance0.1270 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A31BC #53BC31
analogous
#5531BC #9A31BC #BC3199
triadic
#9A31BC #BC9A31 #31BC9A
tetradic
#9A31BC #BC5531 #53BC31 #3199BC
square
#9A31BC #BC5531 #53BC31 #3199BC
split-complementary
#9A31BC #99BC31 #31BC55
monochromatic
#4A185B #72248B #9A31BC #B557D3 #CA88E0

Accessibility & contrast

On white

5.93
#9A31BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#9A31BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A31BC
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A31BC#FFFFFF#000000##FFFFFF
##9A31BC1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC0
Deuteranopia (green-blind)
#3167B9
Tritanopia (blue-blind)
#984F74
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9a31bc;
/* rgb */ color: rgb(154, 49, 188);
/* oklch */ color: oklch(53.0% 0.214 316.4);
Tailwind
colors: {
  custom: {
    50: '#bc74d1',
    500: '#9a31bc',
    950: '#000000',
  },
}
SCSS
$custom: #9a31bc;
$custom-light: #bc74d1;
$custom-dark: #000000;
JSON
{
  "hex": "#9a31bc",
  "rgb": {
    "r": 154,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 285.324,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.53034,
    "c": 0.21431,
    "h": 316.4
  },
  "luminance": 0.12697
}

Semantic roles & 50–950 ramp

primary
#9A31BC
secondary
#91CA7F
accent
#E2466C
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#120914
muted
#817B82

Preview Lab

Preview with #9A31BC

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

Preview Lab → · Contrast checker → · Palette generator →

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