#9F31B0#9F31B0

#9F31B0 is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.0% C 0.206 H 322.0°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#9F31B0
RGBrgb(159, 49, 176)
HSLhsl(292, 56%, 44%)
HSVhsv(292, 72%, 69%)
CMYKcmyk(9.7%, 72.2%, 0%, 31%)
CIE-LABlab(42.31, 61.27, -45.39)
CIE-LCHlch(42.31, 76.25, 323.47°)
OKLaboklab(52.95% 0.1622 -0.1268)
OKLCHoklch(52.95% 0.206 322)
XYZxyz(23.2320, 12.7034, 42.2942)
Luminance0.1270 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F31B0 #42B031
analogous
#6031B0 #9F31B0 #B03181
triadic
#9F31B0 #B09F31 #31B09F
tetradic
#9F31B0 #B06031 #42B031 #3181B0
square
#9F31B0 #B06031 #42B031 #3181B0
split-complementary
#9F31B0 #81B031 #31B060
monochromatic
#491650 #742480 #9F31B0 #BD50CE #CF80DC

Accessibility & contrast

On white

5.93
#9F31B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#9F31B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F31B0
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F31B0#FFFFFF#000000##FFFFFF
##9F31B01.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB4
Deuteranopia (green-blind)
#4268AD
Tritanopia (blue-blind)
#A1486E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9f31b0;
/* rgb */ color: rgb(159, 49, 176);
/* oklch */ color: oklch(53.0% 0.206 322.0);
Tailwind
colors: {
  custom: {
    50: '#bf74c8',
    500: '#9f31b0',
    950: '#000000',
  },
}
SCSS
$custom: #9f31b0;
$custom-light: #bf74c8;
$custom-dark: #000000;
JSON
{
  "hex": "#9f31b0",
  "rgb": {
    "r": 159,
    "g": 49,
    "b": 176
  },
  "hsl": {
    "h": 291.969,
    "s": 56.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.52951,
    "c": 0.20591,
    "h": 322
  },
  "luminance": 0.12702
}

Semantic roles & 50–950 ramp

primary
#9F31B0
secondary
#82C578
accent
#E0485C
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #9F31B0

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

Preview Lab → · Contrast checker → · Palette generator →

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