Skip to content

Medium violet red

Medium violet red is a medium, vivid color from the pink family. Hex code #C71585.

Medium violet red#C71585

Color codes

  • CSS namemediumvioletred
  • HEX#C71585
  • RGBrgb(199 21 133)
  • HSLhsl(322 81% 43%)
  • HSB / HSVhsb(322, 89%, 78%)
  • OKLCHoklch(55.3% 0.222 349.7)
  • CMYKcmyk(0%, 89%, 33%, 22%)

White text

5.42:1 · passes WCAG AA

Black text

3.87:1 · passes WCAG AA for large text only

Shades

50#FEECF4
100#FDC0DC
200#FC8FC6
300#FA52B0
400#D93095
500#B31B78
600#8F005D
700#640A41
800#420029

Complementary

#C71585
#118669

Analogous

#C71585
#A733C1
#D50138

Triadic

#C71585
#787809
#107DA4

About this color

Medium violet red in CSS and design

Medium violet red is a medium, vivid color from the pink family. Medium violet red 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: mediumvioletred;
color: #C71585;
color: rgb(199 21 133);
color: hsl(322 81% 43%);

For text on medium violet red, white 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 violet red?

#C71585. In CSS you can also use the keyword mediumvioletred, which works in every browser.

What is medium violet red in RGB and HSL?

In RGB it is rgb(199 21 133), in HSL hsl(322 81% 43%). For print, cmyk(0%, 89%, 33%, 22%) 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 violet red?

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

Which colors go with medium violet red?

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