Medium Violet Red color: hex #c71585, RGB and HSL
Medium Violet Red is the CSS keyword mediumvioletred, hex #c71585, rgb(199, 21, 133), hsl(322, 81%, 43%). It is a dark, vivid magenta in the pinks family. Below: the colors that go with it, its tints and shades, how it reads as text, and a complete interface palette built from it.
- CSS name
- mediumvioletred
- Hex
- #c71585
- RGB
- rgb(199, 21, 133)
- HSL
- hsl(322, 81%, 43%)
- On white
- 5.42:1 — passes AA for body text
- On black
- 3.87:1 — large text and UI only (3:1)
.example {
color: mediumvioletred; /* keyword */
color: #c71585; /* hex */
color: rgb(199, 21, 133); /* rgb */
color: hsl(322, 81%, 43%); /* hsl */
}What colors go with medium violet red
Each match keeps medium violet red's saturation and lightness and rotates only the hue, so the relationship is the wheel's and nothing else. Any of these can be an accent beside medium violet red as the primary; the harmony guides explain which rule suits which interface.
Complementary
The opposite hue, 180° away — the strongest contrast, best kept to one accent per screen.
Split-complementary
The two neighbors of the complement, at 150° and 210° — most of the contrast with less tension, and two accents instead of one.
Triadic
Two hues at 120° and 240° — three evenly spaced signals, the scheme charts and category colors want.
Analogous
The neighbors at −30° and +30° — calm and cohesive, with emphasis coming from weight and size rather than hue.
Tints and shades of medium violet red
Tints add lightness toward white; shades remove it toward black. The hue and saturation stay fixed, so every step still reads as medium violet red — these are the hover, pressed, disabled and surface variants a single brand color needs.
Tints (lighter)
Shades (darker)
A UI color palette built from medium violet red
The eight semantic roles an interface actually uses, derived from medium violet red as the primary with the split-complementary rule: secondary and accent rotate around the wheel, and the five neutrals take the hue at lightness steps tuned for light and dark mode. This is the same derivation the palette generator runs — open it there to change the rule, drag the anchors, or export the set as CSS variables.
- primary
- #c71585
- secondary
- #2cc715
- accent
- #15c7b0
- background
- #fdfcfd
- surface
- #f7f3f5
- text
- #22111c
- muted
- #8f567a
- border
- #ecdfe7
- primary
- #e92fa4
- secondary
- #47e92f
- accent
- #2fe9d1
- background
- #1b0e16
- surface
- #281521
- text
- #f6f3f5
- muted
- #b894aa
- border
- #49273c
Using medium violet red in an interface
Pinks carry warmth without red's alarm, which makes hot pink and deep pink strong accent colors for consumer and creative products. The pale pinks work as tinted surfaces; the violet-reds are dark enough to carry text on white. Whichever role medium violet red takes, define it once as a token rather than repeating the keyword: the semantic palette guide covers the eight roles, and the guides to complementary, triadic and the other color schemes explain how to weight the matches above.
- What is the hex code for Medium Violet Red?
- Medium Violet Red is #c71585. In CSS the keyword mediumvioletred, the hex #c71585, rgb(199, 21, 133) and hsl(322, 81%, 43%) all paint the same color.
- What colors go with Medium Violet Red?
- Its complement is #15c757, the split-complementary pair is #2cc715 and #15c7b0, the triadic partners are #85c715 and #1585c7, and the analogous neighbors are #b015c7 and #c7152c. In an interface, use Medium Violet Red for most colored elements and one of these for a single accent, at roughly an 80/20 split.
- What is the opposite of Medium Violet Red on the color wheel?
- The opposite (complementary) color is #15c757, the same saturation and lightness rotated 180° around the HSL wheel. Complementary pairs give the strongest contrast, which is why the complement should be used sparingly rather than at equal weight.
- Can I use Medium Violet Red for text?
- Medium Violet Red as text on white has a contrast ratio of 5.42:1, which passes WCAG AA for body text (4.5:1). On black it is 3.87:1, which fails for body text. It works as a text color on light surfaces.