#9B31CF#9B31CF

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

Color values

HEX#9B31CF
RGBrgb(155, 49, 207)
HSLhsl(280, 62%, 50%)
HSVhsv(280, 76%, 81%)
CMYKcmyk(25.1%, 76.3%, 0%, 18.8%)
CIE-LABlab(43.76, 66.48, -61.21)
CIE-LCHlch(43.76, 90.37, 317.37°)
OKLaboklab(54.5% 0.1535 -0.1733)
OKLCHoklch(54.5% 0.232 311.5)
XYZxyz(25.8762, 13.6709, 60.2950)
Luminance0.1367 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B31CF #65CF31
analogous
#4C31CF #9B31CF #CF31B4
triadic
#9B31CF #CF9B31 #31CF9B
tetradic
#9B31CF #CF4C31 #65CF31 #31B4CF
square
#9B31CF #CF4C31 #65CF31 #31B4CF
split-complementary
#9B31CF #B4CF31 #31CF4C
monochromatic
#51196C #76259E #9B31CF #B363DB #CB94E6

Accessibility & contrast

On white

5.62
#9B31CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#9B31CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B31CF
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B31CF#FFFFFF#000000##FFFFFF
##9B31CF1.005.623.735.62
#FFFFFF5.621.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D3
Deuteranopia (green-blind)
#0F69CC
Tritanopia (blue-blind)
#94577F
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9b31cf;
/* rgb */ color: rgb(155, 49, 207);
/* oklch */ color: oklch(54.5% 0.232 311.5);
Tailwind
colors: {
  custom: {
    50: '#be75df',
    500: '#9b31cf',
    950: '#000000',
  },
}
SCSS
$custom: #9b31cf;
$custom-light: #be75df;
$custom-dark: #000000;
JSON
{
  "hex": "#9b31cf",
  "rgb": {
    "r": 155,
    "g": 49,
    "b": 207
  },
  "hsl": {
    "h": 280.253,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.54503,
    "c": 0.23154,
    "h": 311.5
  },
  "luminance": 0.1367
}

Semantic roles & 50–950 ramp

primary
#9B31CF
secondary
#A2D18B
accent
#E54378
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9B31CF

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

Preview Lab → · Contrast checker → · Palette generator →

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