#9B31B2#9B31B2

#9B31B2 is a mid, highly saturated purple. Relative luminance 0.124; OKLCH L 52.5% C 0.206 H 319.8°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#9B31B2
RGBrgb(155, 49, 178)
HSLhsl(289, 57%, 45%)
HSVhsv(289, 72%, 70%)
CMYKcmyk(12.9%, 72.5%, 0%, 30.2%)
CIE-LABlab(41.81, 60.79, -47.40)
CIE-LCHlch(41.81, 77.09, 322.05°)
OKLaboklab(52.51% 0.1573 -0.1328)
OKLCHoklch(52.51% 0.206 319.8)
XYZxyz(22.6508, 12.3807, 43.3075)
Luminance0.1238 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B31B2 #48B231
analogous
#5A31B2 #9B31B2 #B23189
triadic
#9B31B2 #B29B31 #31B29B
tetradic
#9B31B2 #B25A31 #48B231 #3189B2
square
#9B31B2 #B25A31 #48B231 #3189B2
split-complementary
#9B31B2 #89B231 #31B25A
monochromatic
#471752 #712482 #9B31B2 #B951CF #CC81DC

Accessibility & contrast

On white

6.04
#9B31B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#9B31B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B31B2
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B31B2#FFFFFF#000000##FFFFFF
##9B31B21.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB6
Deuteranopia (green-blind)
#3C66AF
Tritanopia (blue-blind)
#9B4A6F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9b31b2;
/* rgb */ color: rgb(155, 49, 178);
/* oklch */ color: oklch(52.5% 0.206 319.8);
Tailwind
colors: {
  custom: {
    50: '#bc73ca',
    500: '#9b31b2',
    950: '#000000',
  },
}
SCSS
$custom: #9b31b2;
$custom-light: #bc73ca;
$custom-dark: #000000;
JSON
{
  "hex": "#9b31b2",
  "rgb": {
    "r": 155,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 289.302,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.52511,
    "c": 0.20592,
    "h": 319.8
  },
  "luminance": 0.1238
}

Semantic roles & 50–950 ramp

primary
#9B31B2
secondary
#87C579
accent
#E04863
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9B31B2

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

Preview Lab → · Contrast checker → · Palette generator →

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