#9F31C2#9F31C2

#9F31C2 is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.1% C 0.221 H 316.5°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#9F31C2
RGBrgb(159, 49, 194)
HSLhsl(286, 60%, 48%)
HSVhsv(286, 75%, 76%)
CMYKcmyk(18%, 74.7%, 0%, 23.9%)
CIE-LABlab(43.45, 64.66, -54.13)
CIE-LCHlch(43.45, 84.32, 320.07°)
OKLaboklab(54.13% 0.1606 -0.1524)
OKLCHoklch(54.13% 0.221 316.5)
XYZxyz(25.1325, 13.4636, 52.3034)
Luminance0.1346 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F31C2 #54C231
analogous
#5631C2 #9F31C2 #C2319D
triadic
#9F31C2 #C29F31 #31C29F
tetradic
#9F31C2 #C25631 #54C231 #319DC2
square
#9F31C2 #C25631 #54C231 #319DC2
split-complementary
#9F31C2 #9DC231 #31C256
monochromatic
#4F1860 #772591 #9F31C2 #B85BD6 #CD8CE2

Accessibility & contrast

On white

5.69
#9F31C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#9F31C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F31C2
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F31C2#FFFFFF#000000##FFFFFF
##9F31C21.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C6
Deuteranopia (green-blind)
#316ABF
Tritanopia (blue-blind)
#9D5078
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9f31c2;
/* rgb */ color: rgb(159, 49, 194);
/* oklch */ color: oklch(54.1% 0.221 316.5);
Tailwind
colors: {
  custom: {
    50: '#c075d5',
    500: '#9f31c2',
    950: '#000000',
  },
}
SCSS
$custom: #9f31c2;
$custom-light: #c075d5;
$custom-dark: #000000;
JSON
{
  "hex": "#9f31c2",
  "rgb": {
    "r": 159,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 285.517,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.54126,
    "c": 0.22138,
    "h": 316.5
  },
  "luminance": 0.13463
}

Semantic roles & 50–950 ramp

primary
#9F31C2
secondary
#94CC83
accent
#E3456B
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#130914
muted
#827B83

Preview Lab

Preview with #9F31C2

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

Preview Lab → · Contrast checker → · Palette generator →

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