#9B31C8#9B31C8

#9B31C8 is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 54.0% C 0.225 H 313.4°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#9B31C8
RGBrgb(155, 49, 200)
HSLhsl(282, 61%, 49%)
HSVhsv(282, 76%, 78%)
CMYKcmyk(22.5%, 75.5%, 0%, 21.6%)
CIE-LABlab(43.27, 65.07, -57.95)
CIE-LCHlch(43.27, 87.14, 318.31°)
OKLaboklab(54% 0.1547 -0.1638)
OKLCHoklch(54% 0.225 313.4)
XYZxyz(25.0394, 13.3361, 55.8875)
Luminance0.1333 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B31C8 #5EC831
analogous
#4F31C8 #9B31C8 #C831AA
triadic
#9B31C8 #C89B31 #31C89B
tetradic
#9B31C8 #C84F31 #5EC831 #31AAC8
square
#9B31C8 #C84F31 #5EC831 #31AAC8
split-complementary
#9B31C8 #AAC831 #31C84F
monochromatic
#4F1966 #752597 #9B31C8 #B45FD8 #CB90E4

Accessibility & contrast

On white

5.73
#9B31C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#9B31C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B31C8
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B31C8#FFFFFF#000000##FFFFFF
##9B31C81.005.733.675.73
#FFFFFF5.731.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CC
Deuteranopia (green-blind)
#2169C5
Tritanopia (blue-blind)
#96547B
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9b31c8;
/* rgb */ color: rgb(155, 49, 200);
/* oklch */ color: oklch(54.0% 0.225 313.4);
Tailwind
colors: {
  custom: {
    50: '#bd74da',
    500: '#9b31c8',
    950: '#000000',
  },
}
SCSS
$custom: #9b31c8;
$custom-light: #bd74da;
$custom-dark: #000000;
JSON
{
  "hex": "#9b31c8",
  "rgb": {
    "r": 155,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 282.119,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.54001,
    "c": 0.2253,
    "h": 313.4
  },
  "luminance": 0.13335
}

Semantic roles & 50–950 ramp

primary
#9B31C8
secondary
#9CCE86
accent
#E44474
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9B31C8

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

Preview Lab → · Contrast checker → · Palette generator →

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