100% free no uploads no sign-up

medium violet red color code

The hex code for medium violet red is #C71585, which is rgb(199, 21, 133) in RGB and cmyk(0%, 89%, 33%, 22%) in CMYK. It's a medium, rich magenta. It is a built-in CSS colour, so you can also write it as “mediumvioletred”.

#C71585medium violet red
White text: 5.42:1 ✓ AABlack text: 3.87:1 large text onlyNearest name: medium violet red

Move the sliders to find a lighter, darker or softer medium violet red; the codes update as you go.

Medium Violet Red colour codes

HEX#C71585
RGBrgb(199, 21, 133)
HSLhsl(322, 81%, 43%)
HSV / HSBhsv(322, 89%, 78%)
CMYKcmyk(0%, 89%, 33%, 22%)
Decimal13047173
CSS keywordmediumvioletred

About medium violet red

Medium Violet Red sits at a hue of 322° on the colour wheel, with 81% saturation and 43% lightness. That makes it a colour that sits between warm and cool: greens and purples like this can be styled warm or cool depending on what you put next to them.

For text, white reads better on medium violet red. Medium Violet Red as text on a white background has a contrast ratio of 5.42:1, which passes the WCAG AA rule for body text (4.5:1). On black it is 3.87:1, which fails AA for body text.

Tints and shades of medium violet red

Tints mix medium violet red with white and shades mix it with black, in 10% steps. They're the easiest way to get lighter backgrounds and darker hover or text colours that still match.

#F9E8F3#F4D0E7#EEB9DA#E9A1CE#E38AC2#DD73B6#D85BAA#D2449D#CD2C91
medium violet red #C71585
#B31378#9F116A#8B0F5D#770D50#640B43#500835#3C0628#28041B#14020D

Colours that go with medium violet red

Complementary — opposite on the colour wheel: maximum contrast

#C71585#15C757

Analogous — neighbours 30° either side: calm and natural

#B015C7#C71585#C7152C

Triadic — three hues 120° apart: lively but balanced

#C71585#85C715#1585C7

Split complementary — the two neighbours of the complement: contrast with less tension

#C71585#2CC715#15C7B0

Tetradic — four hues 90° apart: rich, use one as the main colour

#C71585#C7B015#15C757#152CC7

Medium Violet Red text contrast

CombinationRatioAA normal (4.5:1)AA large (3:1)AAA (7:1)
medium violet red on white5.42:1passpassfail
medium violet red on black3.87:1failpassfail

Check medium violet red against any other colour in the contrast checker.

How medium violet red looks with colour blindness

Simulated with the Machado et al. (2009) model for the complete loss of one type of cone cell. Colour vision deficiency affects roughly 1 in 12 men and 1 in 200 women, most often as red-green colour blindness.

normal #C71585protanopia #3D5787deuteranopia #707481tritanopia #D6004F

Use medium violet red in code

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

Frequently asked questions

What is the hex code for medium violet red?

Medium Violet Red is #C71585 (lowercase #c71585). It's the official value of the CSS keyword “mediumvioletred”.

What is medium violet red in RGB, HSL and CMYK?

RGB: rgb(199, 21, 133). HSL: hsl(322, 81%, 43%). CMYK: cmyk(0%, 89%, 33%, 22%). CMYK is a simple conversion for reference; for professional printing, ask your printer for a matching ink or Pantone swatch.

What colours go with medium violet red?

Its complementary colour is #15C757 (close to emerald green), which gives the strongest contrast. For a calmer look, use the analogous colours #B015C7 and #C7152C, or the triadic pair #85C715 and #1585C7. Tints and shades of medium violet red itself always work together.

Is medium violet red a warm or cool colour?

Medium Violet Red has a hue of 322°, which makes it neither clearly warm nor cool.

Should I use black or white text on medium violet red?

White. Black text on medium violet red has a contrast ratio of 3.87:1 and white text has 5.42:1. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text.

How do I use medium violet red in CSS?

Write color: mediumvioletred; or color: #c71585; — both give the same colour. Named colours work in every browser.

Colours similar to medium violet red