Skip to content

Medium purple

Medium purple is a light, rich color from the purple family. Hex code #9370DB.

Medium purple#9370DB

Color codes

  • CSS namemediumpurple
  • HEX#9370DB
  • RGBrgb(147 112 219)
  • HSLhsl(260 60% 65%)
  • HSB / HSVhsb(260, 49%, 86%)
  • OKLCHoklch(62.7% 0.158 296.7)
  • CMYKcmyk(33%, 49%, 0%, 14%)

White text

3.76:1 · passes WCAG AA for large text only

Black text

5.58:1 · passes WCAG AA

Shades

50#F3EFFF
100#D9CCFD
200#BFA8F9
300#A785F2
400#8C69D4
500#734EB6
600#5A3399
700#43167D
800#2B0556

Complementary

#9370DB
#839208

Analogous

#9370DB
#5C82E7
#B861BA

Triadic

#9370DB
#C76E1C
#099E86

About this color

Medium purple in CSS and design

Medium purple is a light, rich color from the purple family. Medium purple is one of the extended color keywords, which CSS adopted from the X11 color names used on Unix workstations.

Use it in CSS by name or by any of its codes; these all give the same color:

color: mediumpurple;
color: #9370DB;
color: rgb(147 112 219);
color: hsl(260 60% 65%);

For text on medium purple, black reads best. Check other combinations with the contrast checker, or browse all CSS color names.

Frequently asked questions

What is the hex code for medium purple?

#9370DB. In CSS you can also use the keyword mediumpurple, which works in every browser.

What is medium purple in RGB and HSL?

In RGB it is rgb(147 112 219), in HSL hsl(260 60% 65%). For print, cmyk(33%, 49%, 0%, 14%) is a starting point, but CMYK depends on paper and ink, so check with your printer.

Should I use black or white text on medium purple?

Black text works better: it has a contrast ratio of 5.58:1 and passes WCAG AA. White text reaches 3.76:1.

Which colors go with medium purple?

Its complementary color is #839208, on the opposite side of the color wheel. For a calmer look, combine it with its analogous neighbors #5C82E7 and #B861BA. The palette generator builds more combinations.