#9B31D0#9B31D0

#9B31D0 is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.6% C 0.232 H 311.3°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#9B31D0
RGBrgb(155, 49, 208)
HSLhsl(280, 63%, 50%)
HSVhsv(280, 76%, 82%)
CMYKcmyk(25.5%, 76.4%, 0%, 18.4%)
CIE-LABlab(43.83, 66.69, -61.67)
CIE-LCHlch(43.83, 90.83, 317.24°)
OKLaboklab(54.58% 0.1533 -0.1747)
OKLCHoklch(54.58% 0.232 311.3)
XYZxyz(25.9989, 13.7199, 60.9409)
Luminance0.1372 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B31D0 #66D031
analogous
#4B31D0 #9B31D0 #D031B5
triadic
#9B31D0 #D09B31 #31D09B
tetradic
#9B31D0 #D04B31 #66D031 #31B5D0
square
#9B31D0 #D04B31 #66D031 #31B5D0
split-complementary
#9B31D0 #B5D031 #31D04B
monochromatic
#51196E #76249F #9B31D0 #B363DB #CB95E7

Accessibility & contrast

On white

5.61
#9B31D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#9B31D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B31D0
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B31D0#FFFFFF#000000##FFFFFF
##9B31D01.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D4
Deuteranopia (green-blind)
#0A69CD
Tritanopia (blue-blind)
#945780
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9b31d0;
/* rgb */ color: rgb(155, 49, 208);
/* oklch */ color: oklch(54.6% 0.232 311.3);
Tailwind
colors: {
  custom: {
    50: '#be75df',
    500: '#9b31d0',
    950: '#000000',
  },
}
SCSS
$custom: #9b31d0;
$custom-light: #be75df;
$custom-dark: #000000;
JSON
{
  "hex": "#9b31d0",
  "rgb": {
    "r": 155,
    "g": 49,
    "b": 208
  },
  "hsl": {
    "h": 280,
    "s": 62.846,
    "l": 50.392
  },
  "oklch": {
    "l": 0.54576,
    "c": 0.23243,
    "h": 311.3
  },
  "luminance": 0.13719
}

Semantic roles & 50–950 ramp

primary
#9B31D0
secondary
#A3D28B
accent
#E64279
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9B31D0

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

Preview Lab → · Contrast checker → · Palette generator →

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