Skip to content

Medium violet red

Medium violet red is a vivid color between violet and red. Hex code #C71585.

Medium violet red#C71585

Medium violet red color codes

  • CSS namemediumvioletred
  • HEX#C71585
  • RGBrgb(199, 21, 133)
  • HSLhsl(322, 81%, 43%)
  • OKLCHoklch(55.3% 0.222 349.7)
HSB and CMYK values
  • HSB / HSVhsb(322, 89%, 78%)
  • CMYKC0 M89 Y33 K22

White text

5.42:1 · passes WCAG AA

Black text

3.87:1 · passes WCAG AA for large text only

Shades of medium violet red

A darker shade of medium violet red is #8F005D (600), and a lighter one is #FA52B0 (300).

Colors that go with medium violet red

Complementary

Analogous

Triadic

The complementary color of medium violet red is #15C757, close to lime green.

Click a color to copy its hex code.

Colors similar to medium violet red

Each compared with medium violet red.

About this color

Medium violet red in CSS and design

Medium violet red is one of the extended color keywords, which mostly go back to the X11 color names of Unix systems. These four lines all give the same medium violet red:

color: mediumvioletred;
color: #C71585;
color: rgb(199, 21, 133);
color: hsl(322, 81%, 43%);

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) and in HSL hsl(322, 81%, 43%). In CMYK it is about C0 M89 Y33 K22, though printed colors vary with paper and ink.

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.

What is the complementary color of medium violet red?

#15C757, close to lime green. It sits opposite medium violet red on the color wheel: the hue turned 180 degrees, with the same saturation and lightness.

Which colors go with medium violet red?

For strong contrast, pair it with its complementary color #15C757. For a calmer look, combine it with its analogous neighbors #B015C7 and #C7152C. The palette generator builds more combinations.