#9F31CA#9F31CA

#9F31CA is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.7% C 0.228 H 314.3°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#9F31CA
RGBrgb(159, 49, 202)
HSLhsl(283, 61%, 49%)
HSVhsv(283, 76%, 79%)
CMYKcmyk(21.3%, 75.7%, 0%, 20.8%)
CIE-LABlab(43.99, 66.22, -57.91)
CIE-LCHlch(43.99, 87.97, 318.83°)
OKLaboklab(54.68% 0.1594 -0.1635)
OKLCHoklch(54.68% 0.228 314.3)
XYZxyz(26.0552, 13.8327, 57.1631)
Luminance0.1383 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F31CA #5CCA31
analogous
#5231CA #9F31CA #CA31A9
triadic
#9F31CA #CA9F31 #31CA9F
tetradic
#9F31CA #CA5231 #5CCA31 #31A9CA
square
#9F31CA #CA5231 #5CCA31 #31A9CA
split-complementary
#9F31CA #A9CA31 #31CA52
monochromatic
#511967 #782599 #9F31CA #B660D8 #CD91E4

Accessibility & contrast

On white

5.58
#9F31CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#9F31CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F31CA
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F31CA#FFFFFF#000000##FFFFFF
##9F31CA1.005.583.775.58
#FFFFFF5.581.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CE
Deuteranopia (green-blind)
#266BC7
Tritanopia (blue-blind)
#9B547C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9f31ca;
/* rgb */ color: rgb(159, 49, 202);
/* oklch */ color: oklch(54.7% 0.228 314.3);
Tailwind
colors: {
  custom: {
    50: '#c075db',
    500: '#9f31ca',
    950: '#000000',
  },
}
SCSS
$custom: #9f31ca;
$custom-light: #c075db;
$custom-dark: #000000;
JSON
{
  "hex": "#9f31ca",
  "rgb": {
    "r": 159,
    "g": 49,
    "b": 202
  },
  "hsl": {
    "h": 283.137,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.54677,
    "c": 0.22837,
    "h": 314.3
  },
  "luminance": 0.13832
}

Semantic roles & 50–950 ramp

primary
#9F31CA
secondary
#9CCF88
accent
#E44471
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9F31CA

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

Preview Lab → · Contrast checker → · Palette generator →

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