#9D31CC#9D31CC

#9D31CC is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.6% C 0.229 H 313.0°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#9D31CC
RGBrgb(157, 49, 204)
HSLhsl(282, 61%, 50%)
HSVhsv(282, 76%, 80%)
CMYKcmyk(23%, 76%, 0%, 20%)
CIE-LABlab(43.84, 66.24, -59.33)
CIE-LCHlch(43.84, 88.93, 318.15°)
OKLaboklab(54.55% 0.1566 -0.1678)
OKLCHoklch(54.55% 0.229 313)
XYZxyz(25.9001, 13.7252, 58.3999)
Luminance0.1372 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D31CC #60CC31
analogous
#4F31CC #9D31CC #CC31AE
triadic
#9D31CC #CC9D31 #31CC9D
tetradic
#9D31CC #CC4F31 #60CC31 #31AECC
square
#9D31CC #CC4F31 #60CC31 #31AECC
split-complementary
#9D31CC #AECC31 #31CC4F
monochromatic
#511969 #77259B #9D31CC #B561D9 #CC92E5

Accessibility & contrast

On white

5.61
#9D31CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#9D31CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D31CC
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D31CC#FFFFFF#000000##FFFFFF
##9D31CC1.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D0
Deuteranopia (green-blind)
#1D6AC9
Tritanopia (blue-blind)
#98557D
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9d31cc;
/* rgb */ color: rgb(157, 49, 204);
/* oklch */ color: oklch(54.6% 0.229 313.0);
Tailwind
colors: {
  custom: {
    50: '#bf75dc',
    500: '#9d31cc',
    950: '#000000',
  },
}
SCSS
$custom: #9d31cc;
$custom-light: #bf75dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9d31cc",
  "rgb": {
    "r": 157,
    "g": 49,
    "b": 204
  },
  "hsl": {
    "h": 281.806,
    "s": 61.265,
    "l": 49.608
  },
  "oklch": {
    "l": 0.54551,
    "c": 0.22949,
    "h": 313
  },
  "luminance": 0.13724
}

Semantic roles & 50–950 ramp

primary
#9D31CC
secondary
#9ED089
accent
#E44374
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9D31CC

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

Preview Lab → · Contrast checker → · Palette generator →

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