#9F31C4#9F31C4

#9F31C4 is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.3% C 0.223 H 315.9°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#9F31C4
RGBrgb(159, 49, 196)
HSLhsl(285, 60%, 48%)
HSVhsv(285, 75%, 77%)
CMYKcmyk(18.9%, 75%, 0%, 23.1%)
CIE-LABlab(43.59, 65.05, -55.08)
CIE-LCHlch(43.59, 85.23, 319.74°)
OKLaboklab(54.26% 0.1603 -0.1552)
OKLCHoklch(54.26% 0.223 315.9)
XYZxyz(25.3586, 13.5541, 53.4943)
Luminance0.1355 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F31C4 #56C431
analogous
#5531C4 #9F31C4 #C4319F
triadic
#9F31C4 #C49F31 #31C49F
tetradic
#9F31C4 #C45531 #56C431 #319FC4
square
#9F31C4 #C45531 #56C431 #319FC4
split-complementary
#9F31C4 #9FC431 #31C455
monochromatic
#501962 #772593 #9F31C4 #B75CD6 #CD8DE2

Accessibility & contrast

On white

5.66
#9F31C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#9F31C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F31C4
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F31C4#FFFFFF#000000##FFFFFF
##9F31C41.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C8
Deuteranopia (green-blind)
#2F6AC1
Tritanopia (blue-blind)
#9C5179
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9f31c4;
/* rgb */ color: rgb(159, 49, 196);
/* oklch */ color: oklch(54.3% 0.223 315.9);
Tailwind
colors: {
  custom: {
    50: '#c075d7',
    500: '#9f31c4',
    950: '#000000',
  },
}
SCSS
$custom: #9f31c4;
$custom-light: #c075d7;
$custom-dark: #000000;
JSON
{
  "hex": "#9f31c4",
  "rgb": {
    "r": 159,
    "g": 49,
    "b": 196
  },
  "hsl": {
    "h": 284.898,
    "s": 60,
    "l": 48.039
  },
  "oklch": {
    "l": 0.54262,
    "c": 0.22313,
    "h": 315.9
  },
  "luminance": 0.13553
}

Semantic roles & 50–950 ramp

primary
#9F31C4
secondary
#96CD84
accent
#E3456D
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#130914
muted
#827B83

Preview Lab

Preview with #9F31C4

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

Preview Lab → · Contrast checker → · Palette generator →

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