Free Accessible CSS Gradient Generator

← All Colors
#C71585 Medium Violet Red

Medium Violet Red Hex Code #C71585

Medium Violet Red is a medium, strong pink with the hex code #C71585. In RGB it is 199, 21, 133, and in HSL it is 322°, 81%, 43%. It is one of the 148 named colors in CSS, so you can write “mediumvioletred” instead of the hex code.

HEX
#C71585
RGB
rgb(199, 21, 133)
HSL
hsl(322, 81%, 43%)
HSV
hsv(322°, 89%, 78%)
CMYK
cmyk(0%, 89%, 33%, 22%)
CSS name
mediumvioletred

CMYK is a simple screen-to-print estimate. Real print results depend on the printer and paper.

About Medium Violet Red

On a white background Medium Violet Red has a contrast ratio of 5.42:1 (AA), and on black 3.87:1 (AA Large). White text is the better choice on top of it.

It sits between the warm and cool halves of the color wheel, so it pairs comfortably with either.

Pink ranges from soft and gentle to bold and playful, depending on its lightness and saturation. It is common in beauty, fashion and lifestyle design.

Shades and tints of Medium Violet Red

Tints mix Medium Violet Red with white and shades mix it with black, in steps of 20%. Select a swatch to copy its hex code.

Color harmonies for Medium Violet Red

These schemes are calculated from Medium Violet Red on the RGB (screen) color wheel. Select a swatch to copy it, or open any scheme in the color wheel to adjust it.

Analogous

Open in the color wheel

Triadic

Open in the color wheel

Tetradic

Open in the color wheel

Square

Open in the color wheel

On the artist’s RYB wheel, the complement of Medium Violet Red is #64C715, close to the named color Lime Green.

Medium Violet Red contrast and accessibility

WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (AA), and 7:1 and 4.5:1 for AAA. This is how Medium Violet Red scores against white and black.

Contrast of Medium Violet Red with white and black
AgainstRatioAA normalAA largeAAA normalAAA large
White (#ffffff) 5.42:1 ✓ Pass ✓ Pass ✕ Fail ✓ Pass
Black (#000000) 3.87:1 ✕ Fail ✓ Pass ✕ Fail ✕ Fail
Aa White text on Medium Violet Red5.42:1
Aa Black text on Medium Violet Red3.87:1

Medium Violet Red and color blindness

These are approximate previews of how Medium Violet Red can look with the main types of color vision deficiency.

Protanopia #3D5787

Medium Violet Red changes noticeably.

Deuteranopia #707481

Medium Violet Red changes noticeably.

Tritanopia #D6004F

Medium Violet Red changes noticeably.

Achromatopsia #6A6A6A

Medium Violet Red changes noticeably.

Gradients with Medium Violet Red

Three ready-made starting points. Copy the CSS, or open one in the generator to edit the stops and check contrast.

Medium Violet Red to a lighter tint

background: linear-gradient(135deg, #c71585 0%, #e9a1ce 100%);

Medium Violet Red to its analogous neighbour

background: linear-gradient(135deg, #c71585 0%, #c7152c 100%);

Medium Violet Red to its complement

background: linear-gradient(135deg, #c71585 0%, #15c757 100%);

Colors similar to Medium Violet Red

How each close match differs from Medium Violet Red.

More pink colors →

Use Medium Violet Red in code

CSS
.element {
  color: #c71585;
  background-color: #c71585;
  border-color: mediumvioletred;   /* mediumvioletred is a valid CSS color name */
}
CSS variable
:root {
  --color-medium-violet-red: #c71585;
}
Tailwind
<!-- Tailwind arbitrary values -->
<div class="bg-[#c71585] text-[#c71585] border-[#c71585]"></div>

/* Tailwind v4 theme color */
@theme {
  --color-medium-violet-red: #c71585;
}

Medium Violet Red questions

What is the hex code for Medium Violet Red?

The hex code for Medium Violet Red is #C71585. In RGB that is rgb(199, 21, 133), and in HSL it is hsl(322, 81%, 43%).

What is the complementary color of Medium Violet Red?

On the RGB (screen) color wheel, the complement of Medium Violet Red is #15C757, which is close to Lime Green. On the artist’s RYB wheel it is #64C715, close to Lime Green.

Should I use white or black text on Medium Violet Red?

White text. It has a contrast ratio of 5.42:1 against Medium Violet Red, which is WCAG AA. The other option scores 3.87:1.

Is Medium Violet Red accessible as a text color on white?

Yes. Medium Violet Red on white scores 5.42:1, which passes WCAG AA for normal text (4.5:1).

What are darker and lighter shades of Medium Violet Red?

Mixing Medium Violet Red with black gives #9F116A, #770D50, #500835, #28041B (20% to 80% black). Mixing it with white gives #D2449D, #DD73B6, #E9A1CE, #F4D0E7 (20% to 80% white).

More color tools