#9B31CC#9B31CC

#9B31CC is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.3% C 0.229 H 312.3°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#9B31CC
RGBrgb(155, 49, 204)
HSLhsl(281, 61%, 50%)
HSVhsv(281, 76%, 80%)
CMYKcmyk(24%, 76%, 0%, 20%)
CIE-LABlab(43.54, 65.88, -59.82)
CIE-LCHlch(43.54, 88.98, 317.76°)
OKLaboklab(54.29% 0.154 -0.1693)
OKLCHoklch(54.29% 0.229 312.3)
XYZxyz(25.5130, 13.5256, 58.3818)
Luminance0.1353 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B31CC #62CC31
analogous
#4D31CC #9B31CC #CC31B0
triadic
#9B31CC #CC9B31 #31CC9B
tetradic
#9B31CC #CC4D31 #62CC31 #31B0CC
square
#9B31CC #CC4D31 #62CC31 #31B0CC
split-complementary
#9B31CC #B0CC31 #31CC4D
monochromatic
#501969 #76259B #9B31CC #B361D9 #CB92E5

Accessibility & contrast

On white

5.67
#9B31CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#9B31CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B31CC
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B31CC#FFFFFF#000000##FFFFFF
##9B31CC1.005.673.715.67
#FFFFFF5.671.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D0
Deuteranopia (green-blind)
#1869C9
Tritanopia (blue-blind)
#95567D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9b31cc;
/* rgb */ color: rgb(155, 49, 204);
/* oklch */ color: oklch(54.3% 0.229 312.3);
Tailwind
colors: {
  custom: {
    50: '#bd75dc',
    500: '#9b31cc',
    950: '#000000',
  },
}
SCSS
$custom: #9b31cc;
$custom-light: #bd75dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9b31cc",
  "rgb": {
    "r": 155,
    "g": 49,
    "b": 204
  },
  "hsl": {
    "h": 281.032,
    "s": 61.265,
    "l": 49.608
  },
  "oklch": {
    "l": 0.54287,
    "c": 0.22886,
    "h": 312.3
  },
  "luminance": 0.13525
}

Semantic roles & 50–950 ramp

primary
#9B31CC
secondary
#9FD089
accent
#E44376
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9B31CC

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

Preview Lab → · Contrast checker → · Palette generator →

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