#9F31B1#9F31B1

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

Color values

HEX#9F31B1
RGBrgb(159, 49, 177)
HSLhsl(292, 57%, 44%)
HSVhsv(292, 72%, 69%)
CMYKcmyk(10.2%, 72.3%, 0%, 30.6%)
CIE-LABlab(42.37, 61.46, -45.88)
CIE-LCHlch(42.37, 76.69, 323.26°)
OKLaboklab(53.01% 0.1621 -0.1283)
OKLCHoklch(53.01% 0.207 321.7)
XYZxyz(23.3313, 12.7432, 42.8172)
Luminance0.1274 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F31B1 #43B131
analogous
#5F31B1 #9F31B1 #B13183
triadic
#9F31B1 #B19F31 #31B19F
tetradic
#9F31B1 #B15F31 #43B131 #3183B1
square
#9F31B1 #B15F31 #43B131 #3183B1
split-complementary
#9F31B1 #83B131 #31B15F
monochromatic
#491651 #742481 #9F31B1 #BD51CF #CF80DC

Accessibility & contrast

On white

5.92
#9F31B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#9F31B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F31B1
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F31B1#FFFFFF#000000##FFFFFF
##9F31B11.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB5
Deuteranopia (green-blind)
#4168AE
Tritanopia (blue-blind)
#A1496E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9f31b1;
/* rgb */ color: rgb(159, 49, 177);
/* oklch */ color: oklch(53.0% 0.207 321.7);
Tailwind
colors: {
  custom: {
    50: '#bf74c9',
    500: '#9f31b1',
    950: '#000000',
  },
}
SCSS
$custom: #9f31b1;
$custom-light: #bf74c9;
$custom-dark: #000000;
JSON
{
  "hex": "#9f31b1",
  "rgb": {
    "r": 159,
    "g": 49,
    "b": 177
  },
  "hsl": {
    "h": 291.563,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.53014,
    "c": 0.20676,
    "h": 321.7
  },
  "luminance": 0.12742
}

Semantic roles & 50–950 ramp

primary
#9F31B1
secondary
#84C579
accent
#E0485D
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #9F31B1

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

Preview Lab → · Contrast checker → · Palette generator →

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