#9B31C2#9B31C2

#9B31C2 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.6% C 0.220 H 315.0°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#9B31C2
RGBrgb(155, 49, 194)
HSLhsl(284, 60%, 48%)
HSVhsv(284, 75%, 76%)
CMYKcmyk(20.1%, 74.7%, 0%, 23.9%)
CIE-LABlab(42.86, 63.88, -55.12)
CIE-LCHlch(42.86, 84.38, 319.21°)
OKLaboklab(53.58% 0.1556 -0.1555)
OKLCHoklch(53.58% 0.22 315)
XYZxyz(24.3519, 13.0611, 52.2668)
Luminance0.1306 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B31C2 #58C231
analogous
#5231C2 #9B31C2 #C231A1
triadic
#9B31C2 #C29B31 #31C29B
tetradic
#9B31C2 #C25231 #58C231 #31A1C2
square
#9B31C2 #C25231 #58C231 #31A1C2
split-complementary
#9B31C2 #A1C231 #31C252
monochromatic
#4D1860 #742591 #9B31C2 #B45BD6 #CB8CE2

Accessibility & contrast

On white

5.81
#9B31C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#9B31C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B31C2
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B31C2#FFFFFF#000000##FFFFFF
##9B31C21.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC6
Deuteranopia (green-blind)
#2B68BF
Tritanopia (blue-blind)
#985178
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9b31c2;
/* rgb */ color: rgb(155, 49, 194);
/* oklch */ color: oklch(53.6% 0.220 315.0);
Tailwind
colors: {
  custom: {
    50: '#bd74d5',
    500: '#9b31c2',
    950: '#000000',
  },
}
SCSS
$custom: #9b31c2;
$custom-light: #bd74d5;
$custom-dark: #000000;
JSON
{
  "hex": "#9b31c2",
  "rgb": {
    "r": 155,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 283.862,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.53582,
    "c": 0.21997,
    "h": 315
  },
  "luminance": 0.1306
}

Semantic roles & 50–950 ramp

primary
#9B31C2
secondary
#96CC83
accent
#E3456F
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#130914
muted
#827B83

Preview Lab

Preview with #9B31C2

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

Preview Lab → · Contrast checker → · Palette generator →

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