#9B31A2#9B31A2

#9B31A2 is a mid, vivid purple. Relative luminance 0.118; OKLCH L 51.5% C 0.192 H 325.3°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#9B31A2
RGBrgb(155, 49, 162)
HSLhsl(296, 54%, 41%)
HSVhsv(296, 70%, 64%)
CMYKcmyk(4.3%, 69.8%, 0%, 36.5%)
CIE-LABlab(40.86, 57.86, -39.41)
CIE-LCHlch(40.86, 70.00, 325.74°)
OKLaboklab(51.52% 0.158 -0.1095)
OKLCHoklch(51.52% 0.192 325.3)
XYZxyz(21.1370, 11.7752, 35.3349)
Luminance0.1177 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B31A2 #38A231
analogous
#6331A2 #9B31A2 #A23171
triadic
#9B31A2 #A29B31 #31A29B
tetradic
#9B31A2 #A26331 #38A231 #3171A2
square
#9B31A2 #A26331 #38A231 #3171A2
split-complementary
#9B31A2 #71A231 #31A263
monochromatic
#411544 #6E2373 #9B31A2 #C048C8 #D077D6

Accessibility & contrast

On white

6.26
#9B31A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#9B31A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B31A2
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B31A2#FFFFFF#000000##FFFFFF
##9B31A21.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1658A5
Deuteranopia (green-blind)
#48659F
Tritanopia (blue-blind)
#9F4366
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9b31a2;
/* rgb */ color: rgb(155, 49, 162);
/* oklch */ color: oklch(51.5% 0.192 325.3);
Tailwind
colors: {
  custom: {
    50: '#bc73be',
    500: '#9b31a2',
    950: '#000000',
  },
}
SCSS
$custom: #9b31a2;
$custom-light: #bc73be;
$custom-dark: #000000;
JSON
{
  "hex": "#9b31a2",
  "rgb": {
    "r": 155,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 296.283,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.51518,
    "c": 0.19223,
    "h": 325.3
  },
  "luminance": 0.11774
}

Semantic roles & 50–950 ramp

primary
#9B31A2
secondary
#75BE71
accent
#DD4B54
background
#FBF7FB
surface
#F7EDF7
border
#D0C8D0
text
#120912
muted
#817B81

Preview Lab

Preview with #9B31A2

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

Preview Lab → · Contrast checker → · Palette generator →

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