#9B31C7#9B31C7

#9B31C7 is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 53.9% C 0.224 H 313.6°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#9B31C7
RGBrgb(155, 49, 199)
HSLhsl(282, 60%, 49%)
HSVhsv(282, 75%, 78%)
CMYKcmyk(22.1%, 75.4%, 0%, 22%)
CIE-LABlab(43.20, 64.87, -57.48)
CIE-LCHlch(43.20, 86.68, 318.46°)
OKLaboklab(53.93% 0.1549 -0.1624)
OKLCHoklch(53.93% 0.224 313.6)
XYZxyz(24.9229, 13.2895, 55.2740)
Luminance0.1329 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B31C7 #5DC731
analogous
#5031C7 #9B31C7 #C731A8
triadic
#9B31C7 #C79B31 #31C79B
tetradic
#9B31C7 #C75031 #5DC731 #31A8C7
square
#9B31C7 #C75031 #5DC731 #31A8C7
split-complementary
#9B31C7 #A8C731 #31C750
monochromatic
#4E1965 #752596 #9B31C7 #B45ED7 #CB8FE3

Accessibility & contrast

On white

5.74
#9B31C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#9B31C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B31C7
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B31C7#FFFFFF#000000##FFFFFF
##9B31C71.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CB
Deuteranopia (green-blind)
#2368C4
Tritanopia (blue-blind)
#96537B
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9b31c7;
/* rgb */ color: rgb(155, 49, 199);
/* oklch */ color: oklch(53.9% 0.224 313.6);
Tailwind
colors: {
  custom: {
    50: '#bd74d9',
    500: '#9b31c7',
    950: '#000000',
  },
}
SCSS
$custom: #9b31c7;
$custom-light: #bd74d9;
$custom-dark: #000000;
JSON
{
  "hex": "#9b31c7",
  "rgb": {
    "r": 155,
    "g": 49,
    "b": 199
  },
  "hsl": {
    "h": 282.4,
    "s": 60.484,
    "l": 48.627
  },
  "oklch": {
    "l": 0.53931,
    "c": 0.22441,
    "h": 313.6
  },
  "luminance": 0.13289
}

Semantic roles & 50–950 ramp

primary
#9B31C7
secondary
#9BCE86
accent
#E44473
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9B31C7

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

Preview Lab → · Contrast checker → · Palette generator →

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