#9D31AF#9D31AF

#9D31AF is a mid, highly saturated purple. Relative luminance 0.125; OKLCH L 52.6% C 0.204 H 321.6°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#9D31AF
RGBrgb(157, 49, 175)
HSLhsl(291, 56%, 44%)
HSVhsv(291, 72%, 69%)
CMYKcmyk(10.3%, 72%, 0%, 31.4%)
CIE-LABlab(41.94, 60.66, -45.41)
CIE-LCHlch(41.94, 75.77, 323.18°)
OKLaboklab(52.6% 0.1599 -0.127)
OKLCHoklch(52.6% 0.204 321.6)
XYZxyz(22.7400, 12.4611, 41.7566)
Luminance0.1246 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D31AF #43AF31
analogous
#5E31AF #9D31AF #AF3182
triadic
#9D31AF #AF9D31 #31AF9D
tetradic
#9D31AF #AF5E31 #43AF31 #3182AF
square
#9D31AF #AF5E31 #43AF31 #3182AF
split-complementary
#9D31AF #82AF31 #31AF5E
monochromatic
#47164F #72247F #9D31AF #BC4FCE #CE7FDB

Accessibility & contrast

On white

6.01
#9D31AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#9D31AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D31AF
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D31AF#FFFFFF#000000##FFFFFF
##9D31AF1.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB3
Deuteranopia (green-blind)
#4167AC
Tritanopia (blue-blind)
#9F486D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9d31af;
/* rgb */ color: rgb(157, 49, 175);
/* oklch */ color: oklch(52.6% 0.204 321.6);
Tailwind
colors: {
  custom: {
    50: '#be74c7',
    500: '#9d31af',
    950: '#000000',
  },
}
SCSS
$custom: #9d31af;
$custom-light: #be74c7;
$custom-dark: #000000;
JSON
{
  "hex": "#9d31af",
  "rgb": {
    "r": 157,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 291.429,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.52603,
    "c": 0.20418,
    "h": 321.6
  },
  "luminance": 0.1246
}

Semantic roles & 50–950 ramp

primary
#9D31AF
secondary
#83C478
accent
#E0485E
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #9D31AF

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

Preview Lab → · Contrast checker → · Palette generator →

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