#9B31B0#9B31B0

#9B31B0 is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.4% C 0.204 H 320.5°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#9B31B0
RGBrgb(155, 49, 176)
HSLhsl(290, 56%, 44%)
HSVhsv(290, 72%, 69%)
CMYKcmyk(11.9%, 72.2%, 0%, 31%)
CIE-LABlab(41.69, 60.41, -46.42)
CIE-LCHlch(41.69, 76.19, 322.46°)
OKLaboklab(52.38% 0.1575 -0.13)
OKLCHoklch(52.38% 0.204 320.5)
XYZxyz(22.4514, 12.3009, 42.2576)
Luminance0.1230 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B31B0 #46B031
analogous
#5C31B0 #9B31B0 #B03186
triadic
#9B31B0 #B09B31 #31B09B
tetradic
#9B31B0 #B05C31 #46B031 #3186B0
square
#9B31B0 #B05C31 #46B031 #3186B0
split-complementary
#9B31B0 #86B031 #31B05C
monochromatic
#471650 #712480 #9B31B0 #B950CE #CC80DC

Accessibility & contrast

On white

6.07
#9B31B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#9B31B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B31B0
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B31B0#FFFFFF#000000##FFFFFF
##9B31B01.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB4
Deuteranopia (green-blind)
#3E66AD
Tritanopia (blue-blind)
#9C496E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9b31b0;
/* rgb */ color: rgb(155, 49, 176);
/* oklch */ color: oklch(52.4% 0.204 320.5);
Tailwind
colors: {
  custom: {
    50: '#bc73c8',
    500: '#9b31b0',
    950: '#000000',
  },
}
SCSS
$custom: #9b31b0;
$custom-light: #bc73c8;
$custom-dark: #000000;
JSON
{
  "hex": "#9b31b0",
  "rgb": {
    "r": 155,
    "g": 49,
    "b": 176
  },
  "hsl": {
    "h": 290.079,
    "s": 56.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.52383,
    "c": 0.20419,
    "h": 320.5
  },
  "luminance": 0.123
}

Semantic roles & 50–950 ramp

primary
#9B31B0
secondary
#85C578
accent
#E04861
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9B31B0

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

Preview Lab → · Contrast checker → · Palette generator →

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