#9D31CA#9D31CA

#9D31CA is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.4% C 0.228 H 313.6°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#9D31CA
RGBrgb(157, 49, 202)
HSLhsl(282, 61%, 49%)
HSVhsv(282, 76%, 79%)
CMYKcmyk(22.3%, 75.7%, 0%, 20.8%)
CIE-LABlab(43.70, 65.85, -58.40)
CIE-LCHlch(43.70, 88.01, 318.43°)
OKLaboklab(54.41% 0.1569 -0.165)
OKLCHoklch(54.41% 0.228 313.6)
XYZxyz(25.6617, 13.6298, 57.1447)
Luminance0.1363 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D31CA #5ECA31
analogous
#5131CA #9D31CA #CA31AB
triadic
#9D31CA #CA9D31 #31CA9D
tetradic
#9D31CA #CA5131 #5ECA31 #31ABCA
square
#9D31CA #CA5131 #5ECA31 #31ABCA
split-complementary
#9D31CA #ABCA31 #31CA51
monochromatic
#501967 #772599 #9D31CA #B560D8 #CC91E4

Accessibility & contrast

On white

5.64
#9D31CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#9D31CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D31CA
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D31CA#FFFFFF#000000##FFFFFF
##9D31CA1.005.643.735.64
#FFFFFF5.641.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CE
Deuteranopia (green-blind)
#226AC7
Tritanopia (blue-blind)
#98547C
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9d31ca;
/* rgb */ color: rgb(157, 49, 202);
/* oklch */ color: oklch(54.4% 0.228 313.6);
Tailwind
colors: {
  custom: {
    50: '#bf75db',
    500: '#9d31ca',
    950: '#000000',
  },
}
SCSS
$custom: #9d31ca;
$custom-light: #bf75db;
$custom-dark: #000000;
JSON
{
  "hex": "#9d31ca",
  "rgb": {
    "r": 157,
    "g": 49,
    "b": 202
  },
  "hsl": {
    "h": 282.353,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.5441,
    "c": 0.22772,
    "h": 313.6
  },
  "luminance": 0.13629
}

Semantic roles & 50–950 ramp

primary
#9D31CA
secondary
#9DCF88
accent
#E44473
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9D31CA

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

Preview Lab → · Contrast checker → · Palette generator →

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