#9F31C8#9F31C8

#9F31C8 is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.5% C 0.227 H 314.8°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#9F31C8
RGBrgb(159, 49, 200)
HSLhsl(284, 61%, 49%)
HSVhsv(284, 76%, 78%)
CMYKcmyk(20.5%, 75.5%, 0%, 21.6%)
CIE-LABlab(43.86, 65.83, -56.97)
CIE-LCHlch(43.86, 87.05, 319.13°)
OKLaboklab(54.54% 0.1597 -0.1608)
OKLCHoklch(54.54% 0.227 314.8)
XYZxyz(25.8200, 13.7386, 55.9241)
Luminance0.1374 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F31C8 #5AC831
analogous
#5431C8 #9F31C8 #C831A6
triadic
#9F31C8 #C89F31 #31C89F
tetradic
#9F31C8 #C85431 #5AC831 #31A6C8
square
#9F31C8 #C85431 #5AC831 #31A6C8
split-complementary
#9F31C8 #A6C831 #31C854
monochromatic
#511966 #782597 #9F31C8 #B75FD8 #CD90E4

Accessibility & contrast

On white

5.60
#9F31C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#9F31C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F31C8
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F31C8#FFFFFF#000000##FFFFFF
##9F31C81.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CC
Deuteranopia (green-blind)
#296AC5
Tritanopia (blue-blind)
#9B537B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9f31c8;
/* rgb */ color: rgb(159, 49, 200);
/* oklch */ color: oklch(54.5% 0.227 314.8);
Tailwind
colors: {
  custom: {
    50: '#c075d9',
    500: '#9f31c8',
    950: '#000000',
  },
}
SCSS
$custom: #9f31c8;
$custom-light: #c075d9;
$custom-dark: #000000;
JSON
{
  "hex": "#9f31c8",
  "rgb": {
    "r": 159,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 283.709,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.54538,
    "c": 0.22662,
    "h": 314.8
  },
  "luminance": 0.13738
}

Semantic roles & 50–950 ramp

primary
#9F31C8
secondary
#9ACE86
accent
#E4446F
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9F31C8

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

Preview Lab → · Contrast checker → · Palette generator →

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