#9F31CC#9F31CC

#9F31CC is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.8% C 0.230 H 313.7°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#9F31CC
RGBrgb(159, 49, 204)
HSLhsl(283, 61%, 50%)
HSVhsv(283, 76%, 80%)
CMYKcmyk(22.1%, 76%, 0%, 20%)
CIE-LABlab(44.13, 66.61, -58.84)
CIE-LCHlch(44.13, 88.88, 318.54°)
OKLaboklab(54.82% 0.1591 -0.1663)
OKLCHoklch(54.82% 0.23 313.7)
XYZxyz(26.2936, 13.9281, 58.4184)
Luminance0.1393 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F31CC #5ECC31
analogous
#5231CC #9F31CC #CC31AB
triadic
#9F31CC #CC9F31 #31CC9F
tetradic
#9F31CC #CC5231 #5ECC31 #31ABCC
square
#9F31CC #CC5231 #5ECC31 #31ABCC
split-complementary
#9F31CC #ABCC31 #31CC52
monochromatic
#521969 #79259B #9F31CC #B661D9 #CD92E5

Accessibility & contrast

On white

5.55
#9F31CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#9F31CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F31CC
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F31CC#FFFFFF#000000##FFFFFF
##9F31CC1.005.553.795.55
#FFFFFF5.551.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D0
Deuteranopia (green-blind)
#226BC9
Tritanopia (blue-blind)
#9A557D
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9f31cc;
/* rgb */ color: rgb(159, 49, 204);
/* oklch */ color: oklch(54.8% 0.230 313.7);
Tailwind
colors: {
  custom: {
    50: '#c075dc',
    500: '#9f31cc',
    950: '#000000',
  },
}
SCSS
$custom: #9f31cc;
$custom-light: #c075dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9f31cc",
  "rgb": {
    "r": 159,
    "g": 49,
    "b": 204
  },
  "hsl": {
    "h": 282.581,
    "s": 61.265,
    "l": 49.608
  },
  "oklch": {
    "l": 0.54818,
    "c": 0.23013,
    "h": 313.7
  },
  "luminance": 0.13927
}

Semantic roles & 50–950 ramp

primary
#9F31CC
secondary
#9ED089
accent
#E44372
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9F31CC

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

Preview Lab → · Contrast checker → · Palette generator →

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