#9F31CD#9F31CD

#9F31CD is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.9% C 0.231 H 313.5°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#9F31CD
RGBrgb(159, 49, 205)
HSLhsl(282, 61%, 50%)
HSVhsv(282, 76%, 80%)
CMYKcmyk(22.4%, 76.1%, 0%, 19.6%)
CIE-LABlab(44.20, 66.81, -59.31)
CIE-LCHlch(44.20, 89.34, 318.40°)
OKLaboklab(54.89% 0.1589 -0.1676)
OKLCHoklch(54.89% 0.231 313.5)
XYZxyz(26.4139, 13.9762, 59.0520)
Luminance0.1398 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F31CD #5FCD31
analogous
#5131CD #9F31CD #CD31AD
triadic
#9F31CD #CD9F31 #31CD9F
tetradic
#9F31CD #CD5131 #5FCD31 #31ADCD
square
#9F31CD #CD5131 #5FCD31 #31ADCD
split-complementary
#9F31CD #ADCD31 #31CD51
monochromatic
#52196A #79259C #9F31CD #B662D9 #CD93E5

Accessibility & contrast

On white

5.53
#9F31CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#9F31CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F31CD
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F31CD#FFFFFF#000000##FFFFFF
##9F31CD1.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D1
Deuteranopia (green-blind)
#206BCA
Tritanopia (blue-blind)
#9A557E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9f31cd;
/* rgb */ color: rgb(159, 49, 205);
/* oklch */ color: oklch(54.9% 0.231 313.5);
Tailwind
colors: {
  custom: {
    50: '#c075dd',
    500: '#9f31cd',
    950: '#000000',
  },
}
SCSS
$custom: #9f31cd;
$custom-light: #c075dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9f31cd",
  "rgb": {
    "r": 159,
    "g": 49,
    "b": 205
  },
  "hsl": {
    "h": 282.308,
    "s": 61.417,
    "l": 49.804
  },
  "oklch": {
    "l": 0.54889,
    "c": 0.231,
    "h": 313.5
  },
  "luminance": 0.13975
}

Semantic roles & 50–950 ramp

primary
#9F31CD
secondary
#9ED08A
accent
#E54373
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9F31CD

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

Preview Lab → · Contrast checker → · Palette generator →

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