#9D31A2#9D31A2

#9D31A2 is a mid, vivid purple. Relative luminance 0.120; OKLCH L 51.8% C 0.193 H 326.0°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#9D31A2
RGBrgb(157, 49, 162)
HSLhsl(297, 54%, 41%)
HSVhsv(297, 70%, 64%)
CMYKcmyk(3.1%, 69.8%, 0%, 36.5%)
CIE-LABlab(41.18, 58.32, -38.88)
CIE-LCHlch(41.18, 70.09, 326.31°)
OKLaboklab(51.81% 0.1603 -0.1079)
OKLCHoklch(51.81% 0.193 326)
XYZxyz(21.5241, 11.9748, 35.3531)
Luminance0.1197 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D31A2 #36A231
analogous
#6531A2 #9D31A2 #A2316F
triadic
#9D31A2 #A29D31 #31A29D
tetradic
#9D31A2 #A26531 #36A231 #316FA2
square
#9D31A2 #A26531 #36A231 #316FA2
split-complementary
#9D31A2 #6FA231 #31A265
monochromatic
#421544 #6F2373 #9D31A2 #C248C8 #D277D6

Accessibility & contrast

On white

6.19
#9D31A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#9D31A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D31A2
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D31A2#FFFFFF#000000##FFFFFF
##9D31A21.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1958A5
Deuteranopia (green-blind)
#4A669F
Tritanopia (blue-blind)
#A14366
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9d31a2;
/* rgb */ color: rgb(157, 49, 162);
/* oklch */ color: oklch(51.8% 0.193 326.0);
Tailwind
colors: {
  custom: {
    50: '#bd73be',
    500: '#9d31a2',
    950: '#000000',
  },
}
SCSS
$custom: #9d31a2;
$custom-light: #bd73be;
$custom-dark: #000000;
JSON
{
  "hex": "#9d31a2",
  "rgb": {
    "r": 157,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 297.345,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.5181,
    "c": 0.19322,
    "h": 326
  },
  "luminance": 0.11973
}

Semantic roles & 50–950 ramp

primary
#9D31A2
secondary
#74BE71
accent
#DD4B51
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#120912
muted
#817B81

Preview Lab

Preview with #9D31A2

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

Preview Lab → · Contrast checker → · Palette generator →

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