#9B31AF#9B31AF

#9B31AF is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.3% C 0.203 H 320.8°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#9B31AF
RGBrgb(155, 49, 175)
HSLhsl(290, 56%, 44%)
HSVhsv(290, 72%, 69%)
CMYKcmyk(11.4%, 72%, 0%, 31.4%)
CIE-LABlab(41.63, 60.23, -45.93)
CIE-LCHlch(41.63, 75.74, 322.67°)
OKLaboklab(52.32% 0.1576 -0.1285)
OKLCHoklch(52.32% 0.203 320.8)
XYZxyz(22.3528, 12.2615, 41.7384)
Luminance0.1226 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B31AF #45AF31
analogous
#5C31AF #9B31AF #AF3184
triadic
#9B31AF #AF9B31 #31AF9B
tetradic
#9B31AF #AF5C31 #45AF31 #3184AF
square
#9B31AF #AF5C31 #45AF31 #3184AF
split-complementary
#9B31AF #84AF31 #31AF5C
monochromatic
#46164F #71247F #9B31AF #BA4FCE #CD7FDB

Accessibility & contrast

On white

6.08
#9B31AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#9B31AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B31AF
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B31AF#FFFFFF#000000##FFFFFF
##9B31AF1.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9b31af;
/* rgb */ color: rgb(155, 49, 175);
/* oklch */ color: oklch(52.3% 0.203 320.8);
Tailwind
colors: {
  custom: {
    50: '#bc73c7',
    500: '#9b31af',
    950: '#000000',
  },
}
SCSS
$custom: #9b31af;
$custom-light: #bc73c7;
$custom-dark: #000000;
JSON
{
  "hex": "#9b31af",
  "rgb": {
    "r": 155,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 290.476,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.52319,
    "c": 0.20333,
    "h": 320.8
  },
  "luminance": 0.1226
}

Semantic roles & 50–950 ramp

primary
#9B31AF
secondary
#84C478
accent
#E04860
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9B31AF

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

Preview Lab → · Contrast checker → · Palette generator →

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