Skip to content
Color Codes

CSS named color

MediumVioletRed Color Code

MediumVioletRed is a medium, vivid magenta with the hex code #C71585. In RGB it is rgb(199, 21, 133), in HSL hsl(322, 81%, 43%) and in CMYK cmyk(0%, 89%, 33%, 22%).

MediumVioletRed
#C71585

Color values

In CSS you can write it as the keyword mediumvioletred.

White text on MediumVioletRed has a contrast ratio of 5.42:1 and black text 3.87:1, so white text is the more readable choice.

The closest Tailwind CSS color is Pink 600 (#DB2777).

Use MediumVioletRed in CSS

.element {
  color: mediumvioletred;
  background-color: #c71585;
  border-color: rgb(199, 21, 133);
}

Tints and shades of MediumVioletRed

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

Colors that go with MediumVioletRed

Color-wheel harmonies built from #C71585. 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 MediumVioletRed

Aa
White text
5.42:1
AA
Aa
Black text
3.87:1
AA · Large text
Check in the contrast checker

Colors similar to MediumVioletRed

Palettes with similar colors

Questions about MediumVioletRed

What is the hex code for MediumVioletRed?

The hex code for MediumVioletRed is #C71585. Its RGB value is rgb(199, 21, 133) and its HSL value is hsl(322, 81%, 43%).

What colors go with MediumVioletRed?

The complementary color of MediumVioletRed is #15C656. For a softer scheme try the analogous colors #AF15C6 and #C6152D; for a balanced three-color scheme use the triadic colors #85C615 and #1585C6.

Is MediumVioletRed readable as a text color?

On a white background MediumVioletRed has a contrast ratio of 5.42:1, which passes WCAG AA for normal text (4.5:1). On black it reaches 3.87:1.

More pink colors