#9A31AF#9A31AF

#9A31AF is a mid, highly saturated purple. Relative luminance 0.122; OKLCH L 52.2% C 0.203 H 320.4°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#9A31AF
RGBrgb(154, 49, 175)
HSLhsl(290, 56%, 44%)
HSVhsv(290, 72%, 69%)
CMYKcmyk(12%, 72%, 0%, 31.4%)
CIE-LABlab(41.47, 60.01, -46.18)
CIE-LCHlch(41.47, 75.73, 322.42°)
OKLaboklab(52.18% 0.1564 -0.1293)
OKLCHoklch(52.18% 0.203 320.4)
XYZxyz(22.1617, 12.1629, 41.7295)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A31AF #46AF31
analogous
#5B31AF #9A31AF #AF3185
triadic
#9A31AF #AF9A31 #31AF9A
tetradic
#9A31AF #AF5B31 #46AF31 #3185AF
square
#9A31AF #AF5B31 #46AF31 #3185AF
split-complementary
#9A31AF #85AF31 #31AF5B
monochromatic
#46164F #70247F #9A31AF #B94FCE #CC7FDB

Accessibility & contrast

On white

6.12
#9A31AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#9A31AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A31AF
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A31AF#FFFFFF#000000##FFFFFF
##9A31AF1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB3
Deuteranopia (green-blind)
#3D65AC
Tritanopia (blue-blind)
#9B496D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9a31af;
/* rgb */ color: rgb(154, 49, 175);
/* oklch */ color: oklch(52.2% 0.203 320.4);
Tailwind
colors: {
  custom: {
    50: '#bb73c7',
    500: '#9a31af',
    950: '#000000',
  },
}
SCSS
$custom: #9a31af;
$custom-light: #bb73c7;
$custom-dark: #000000;
JSON
{
  "hex": "#9a31af",
  "rgb": {
    "r": 154,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 290,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.52178,
    "c": 0.2029,
    "h": 320.4
  },
  "luminance": 0.12162
}

Semantic roles & 50–950 ramp

primary
#9A31AF
secondary
#84C478
accent
#E04861
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9A31AF

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

Preview Lab → · Contrast checker → · Palette generator →

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