#9D31A3#9D31A3

#9D31A3 is a mid, vivid purple. Relative luminance 0.120; OKLCH L 51.9% C 0.194 H 325.7°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#9D31A3
RGBrgb(157, 49, 163)
HSLhsl(297, 54%, 42%)
HSVhsv(297, 70%, 64%)
CMYKcmyk(3.7%, 69.9%, 0%, 36.1%)
CIE-LABlab(41.23, 58.49, -39.39)
CIE-LCHlch(41.23, 70.52, 326.04°)
OKLaboklab(51.87% 0.1603 -0.1094)
OKLCHoklch(51.87% 0.194 325.7)
XYZxyz(21.6133, 12.0105, 35.8231)
Luminance0.1201 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D31A3 #37A331
analogous
#6431A3 #9D31A3 #A33170
triadic
#9D31A3 #A39D31 #31A39D
tetradic
#9D31A3 #A36431 #37A331 #3170A3
square
#9D31A3 #A36431 #37A331 #3170A3
split-complementary
#9D31A3 #70A331 #31A364
monochromatic
#421545 #702374 #9D31A3 #C249C8 #D178D6

Accessibility & contrast

On white

6.17
#9D31A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#9D31A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D31A3
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D31A3#FFFFFF#000000##FFFFFF
##9D31A31.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1759A6
Deuteranopia (green-blind)
#4966A0
Tritanopia (blue-blind)
#A14366
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9d31a3;
/* rgb */ color: rgb(157, 49, 163);
/* oklch */ color: oklch(51.9% 0.194 325.7);
Tailwind
colors: {
  custom: {
    50: '#bd73bf',
    500: '#9d31a3',
    950: '#000000',
  },
}
SCSS
$custom: #9d31a3;
$custom-light: #bd73bf;
$custom-dark: #000000;
JSON
{
  "hex": "#9d31a3",
  "rgb": {
    "r": 157,
    "g": 49,
    "b": 163
  },
  "hsl": {
    "h": 296.842,
    "s": 53.774,
    "l": 41.569
  },
  "oklch": {
    "l": 0.51869,
    "c": 0.19405,
    "h": 325.7
  },
  "luminance": 0.12009
}

Semantic roles & 50–950 ramp

primary
#9D31A3
secondary
#75BF71
accent
#DD4B52
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#120912
muted
#817B81

Preview Lab

Preview with #9D31A3

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

Preview Lab → · Contrast checker → · Palette generator →

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