Skip to content
Color Codes

CSS named color

MediumPurple Color Code

MediumPurple is a medium, moderately saturated blue-violet with the hex code #9370DB. In RGB it is rgb(147, 112, 219), in HSL hsl(260, 60%, 65%) and in CMYK cmyk(33%, 49%, 0%, 14%).

MediumPurple
#9370DB

Color values

In CSS you can write it as the keyword mediumpurple.

White text on MediumPurple has a contrast ratio of 3.76:1 and black text 5.58:1, so black text is the more readable choice.

The closest Tailwind CSS color is Violet 500 (#8B5CF6).

Use MediumPurple in CSS

.element {
  color: mediumpurple;
  background-color: #9370db;
  border-color: rgb(147, 112, 219);
}

Tints and shades of MediumPurple

Ten steps from light to dark at the same hue. Click any swatch to copy it.

Colors that go with MediumPurple

Color-wheel harmonies built from #9370DB. Click a swatch to copy it or open the set in the color wheel.

Complementary

Open in color wheel

Opposite hues for maximum contrast and energetic accents.

Neighboring hues for calm, cohesive surfaces.

Three evenly spaced hues for balanced, colorful systems.

Split complementary

Open in color wheel

A base plus the two neighbors of its complement — contrast with less tension.

Text contrast on MediumPurple

Aa
White text
3.76:1
AA · Large text
Aa
Black text
5.58:1
AA
Check in the contrast checker

Colors similar to MediumPurple

Palettes with similar colors

Questions about MediumPurple

What is the hex code for MediumPurple?

The hex code for MediumPurple is #9370DB. Its RGB value is rgb(147, 112, 219) and its HSL value is hsl(260, 60%, 65%).

What colors go with MediumPurple?

The complementary color of MediumPurple is #B8DB70. For a softer scheme try the analogous colors #7082DB and #C970DB; for a balanced three-color scheme use the triadic colors #DB9470 and #70DB94.

Is MediumPurple readable as a text color?

On a white background MediumPurple has a contrast ratio of 3.76:1, which does not pass WCAG AA for normal text (4.5:1). On black it reaches 5.58:1.

More purple colors