#9D31AB#9D31AB

#9D31AB is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.4% C 0.201 H 322.9°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#9D31AB
RGBrgb(157, 49, 171)
HSLhsl(293, 55%, 43%)
HSVhsv(293, 71%, 67%)
CMYKcmyk(8.2%, 71.3%, 0%, 32.9%)
CIE-LABlab(41.70, 59.93, -43.42)
CIE-LCHlch(41.70, 74.00, 324.07°)
OKLaboklab(52.35% 0.1601 -0.1211)
OKLCHoklch(52.35% 0.201 322.9)
XYZxyz(22.3529, 12.3063, 39.7182)
Luminance0.1231 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D31AB #3FAB31
analogous
#6031AB #9D31AB #AB317C
triadic
#9D31AB #AB9D31 #31AB9D
tetradic
#9D31AB #AB6031 #3FAB31 #317CAB
square
#9D31AB #AB6031 #3FAB31 #317CAB
split-complementary
#9D31AB #7CAB31 #31AB60
monochromatic
#46164C #71237B #9D31AB #BD4DCC #CF7DDA

Accessibility & contrast

On white

6.07
#9D31AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#9D31AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D31AB
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D31AB#FFFFFF#000000##FFFFFF
##9D31AB1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#015AAE
Deuteranopia (green-blind)
#4467A8
Tritanopia (blue-blind)
#9F476B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9d31ab;
/* rgb */ color: rgb(157, 49, 171);
/* oklch */ color: oklch(52.4% 0.201 322.9);
Tailwind
colors: {
  custom: {
    50: '#bd73c4',
    500: '#9d31ab',
    950: '#000000',
  },
}
SCSS
$custom: #9d31ab;
$custom-light: #bd73c4;
$custom-dark: #000000;
JSON
{
  "hex": "#9d31ab",
  "rgb": {
    "r": 157,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 293.115,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.52353,
    "c": 0.20077,
    "h": 322.9
  },
  "luminance": 0.12305
}

Semantic roles & 50–950 ramp

primary
#9D31AB
secondary
#7EC275
accent
#DF495A
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9D31AB

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

Preview Lab → · Contrast checker → · Palette generator →

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