#9F31BC#9F31BC

#9F31BC is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.7% C 0.216 H 318.2°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#9F31BC
RGBrgb(159, 49, 188)
HSLhsl(287, 59%, 46%)
HSVhsv(287, 74%, 74%)
CMYKcmyk(15.4%, 73.9%, 0%, 26.3%)
CIE-LABlab(43.06, 63.51, -51.25)
CIE-LCHlch(43.06, 81.61, 321.10°)
OKLaboklab(53.72% 0.1613 -0.144)
OKLCHoklch(53.72% 0.216 318.2)
XYZxyz(24.4722, 13.1995, 48.8259)
Luminance0.1320 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F31BC #4EBC31
analogous
#5A31BC #9F31BC #BC3194
triadic
#9F31BC #BC9F31 #31BC9F
tetradic
#9F31BC #BC5A31 #4EBC31 #3194BC
square
#9F31BC #BC5A31 #4EBC31 #3194BC
split-complementary
#9F31BC #94BC31 #31BC5A
monochromatic
#4D185B #76248B #9F31BC #B957D3 #CD88E0

Accessibility & contrast

On white

5.77
#9F31BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#9F31BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F31BC
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F31BC#FFFFFF#000000##FFFFFF
##9F31BC1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC0
Deuteranopia (green-blind)
#3869B9
Tritanopia (blue-blind)
#9E4E74
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9f31bc;
/* rgb */ color: rgb(159, 49, 188);
/* oklch */ color: oklch(53.7% 0.216 318.2);
Tailwind
colors: {
  custom: {
    50: '#bf74d1',
    500: '#9f31bc',
    950: '#000000',
  },
}
SCSS
$custom: #9f31bc;
$custom-light: #bf74d1;
$custom-dark: #000000;
JSON
{
  "hex": "#9f31bc",
  "rgb": {
    "r": 159,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 287.482,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.53724,
    "c": 0.21619,
    "h": 318.2
  },
  "luminance": 0.13198
}

Semantic roles & 50–950 ramp

primary
#9F31BC
secondary
#8FCA7F
accent
#E24666
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130914
muted
#827B82

Preview Lab

Preview with #9F31BC

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

Preview Lab → · Contrast checker → · Palette generator →

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