#9F31C5#9F31C5

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

Color values

HEX#9F31C5
RGBrgb(159, 49, 197)
HSLhsl(285, 60%, 48%)
HSVhsv(285, 75%, 77%)
CMYKcmyk(19.3%, 75.1%, 0%, 22.7%)
CIE-LABlab(43.65, 65.24, -55.55)
CIE-LCHlch(43.65, 85.69, 319.58°)
OKLaboklab(54.33% 0.1601 -0.1566)
OKLCHoklch(54.33% 0.224 315.6)
XYZxyz(25.4728, 13.5998, 54.0957)
Luminance0.1360 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F31C5 #57C531
analogous
#5531C5 #9F31C5 #C531A1
triadic
#9F31C5 #C59F31 #31C59F
tetradic
#9F31C5 #C55531 #57C531 #31A1C5
square
#9F31C5 #C55531 #57C531 #31A1C5
split-complementary
#9F31C5 #A1C531 #31C555
monochromatic
#501963 #772594 #9F31C5 #B75DD7 #CD8EE3

Accessibility & contrast

On white

5.65
#9F31C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#9F31C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F31C5
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F31C5#FFFFFF#000000##FFFFFF
##9F31C51.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C9
Deuteranopia (green-blind)
#2D6AC2
Tritanopia (blue-blind)
#9C5279
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9f31c5;
/* rgb */ color: rgb(159, 49, 197);
/* oklch */ color: oklch(54.3% 0.224 315.6);
Tailwind
colors: {
  custom: {
    50: '#c075d7',
    500: '#9f31c5',
    950: '#000000',
  },
}
SCSS
$custom: #9f31c5;
$custom-light: #c075d7;
$custom-dark: #000000;
JSON
{
  "hex": "#9f31c5",
  "rgb": {
    "r": 159,
    "g": 49,
    "b": 197
  },
  "hsl": {
    "h": 284.595,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.54331,
    "c": 0.224,
    "h": 315.6
  },
  "luminance": 0.13599
}

Semantic roles & 50–950 ramp

primary
#9F31C5
secondary
#97CD85
accent
#E3446D
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#130914
muted
#827B83

Preview Lab

Preview with #9F31C5

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

Preview Lab → · Contrast checker → · Palette generator →

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