Swatchproof

Medium purple #9370DB

Medium purple is one of the named colours in CSS, written mediumpurple. Black text reaches 5.58:1 on it, enough for body text.

Try on walls Preview on a website

Colour codes

CSS keywordmediumpurple
HEX#9370DB
RGBrgb(147 112 219)
HSLhsl(260 60% 65%)
OKLCHoklch(62.7% 0.158 296.7)
White text3.76:1 · body text AA Fail
Black text5.58:1 · body text AA Pass

Colours that go with Medium purple

The closest colour in Sanzo Wada's A Dictionary of Color Combinations is Light Mauve (#9A72AA), the nearest, though visibly different. These are the colours Wada paired it with, ranked by their contrast with Medium purple itself.

ColourHEXContrast with Medium purpleBody text AA
Dull Violet Black#1E0E3F4.69:1Pass
Sulpher Yellow#F5ECC23.16:1Fail
Red Violet#59256A2.94:1Fail
Cinnamon Buff#FDC57E2.41:1Fail
Violet#4F40862.32:1Fail
Corinthian Pink#F8B6BA2.22:1Fail
Neutral Gray#B6BFC12.01:1Fail
Venice Green#62C6BF1.85:1Fail
Eosine Pink#F37F941.48:1Fail
Indian Lake#C53C691.32:1Fail
Peach Red#F15A301.12:1Fail
Olympic Blue#5A82B31.06:1Fail
Dark Citrine#8B835B1.02:1Fail

Palettes with Light Mauve

Shades and tints of Medium purple

Nine lightness steps in OKLCH that keep the hue of Medium purple. Chroma is reduced only where sRGB cannot show it.

:root {
  --mediumpurple-100: #F6F3FF;
  --mediumpurple-200: #E7DFFF;
  --mediumpurple-300: #D3C3FF;
  --mediumpurple-400: #BA9DFF;
  --mediumpurple-500: #9D7AE6;
  --mediumpurple-600: #7C59C1;
  --mediumpurple-700: #603AA0;
  --mediumpurple-800: #461A81;
  --mediumpurple-900: #2B0059;
}

Text that keeps Medium purple on screen

Text #000000 on #9370DB reaches 5.58:1, which passes WCAG AA for body text. Check it on a dashboard

Similar CSS colours