#9D31CF#9D31CF

#9D31CF is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.8% C 0.232 H 312.2°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#9D31CF
RGBrgb(157, 49, 207)
HSLhsl(281, 62%, 50%)
HSVhsv(281, 76%, 81%)
CMYKcmyk(24.2%, 76.3%, 0%, 18.8%)
CIE-LABlab(44.05, 66.85, -60.72)
CIE-LCHlch(44.05, 90.31, 317.75°)
OKLaboklab(54.77% 0.156 -0.1719)
OKLCHoklch(54.77% 0.232 312.2)
XYZxyz(26.2634, 13.8705, 60.3132)
Luminance0.1387 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D31CF #63CF31
analogous
#4E31CF #9D31CF #CF31B2
triadic
#9D31CF #CF9D31 #31CF9D
tetradic
#9D31CF #CF4E31 #63CF31 #31B2CF
square
#9D31CF #CF4E31 #63CF31 #31B2CF
split-complementary
#9D31CF #B2CF31 #31CF4E
monochromatic
#52196C #78259E #9D31CF #B563DB #CC94E6

Accessibility & contrast

On white

5.56
#9D31CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9D31CF
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D31CF#FFFFFF#000000##FFFFFF
##9D31CF1.005.563.775.56
#FFFFFF5.561.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D3
Deuteranopia (green-blind)
#166ACC
Tritanopia (blue-blind)
#97577F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9d31cf;
/* rgb */ color: rgb(157, 49, 207);
/* oklch */ color: oklch(54.8% 0.232 312.2);
Tailwind
colors: {
  custom: {
    50: '#bf75df',
    500: '#9d31cf',
    950: '#000000',
  },
}
SCSS
$custom: #9d31cf;
$custom-light: #bf75df;
$custom-dark: #000000;
JSON
{
  "hex": "#9d31cf",
  "rgb": {
    "r": 157,
    "g": 49,
    "b": 207
  },
  "hsl": {
    "h": 281.013,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.54766,
    "c": 0.23214,
    "h": 312.2
  },
  "luminance": 0.1387
}

Semantic roles & 50–950 ramp

primary
#9D31CF
secondary
#A1D18B
accent
#E54376
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9D31CF

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

Preview Lab → · Contrast checker → · Palette generator →

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