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%).
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.
Split complementary
Open in color wheelA base plus the two neighbors of its complement — contrast with less tension.
Text contrast on MediumVioletRed
Colors similar to MediumVioletRed
Closest CSS named colors
Closest traditional Chinese colors
Closest Tailwind colors
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.