CSS Named Color

Copy-ready color values

HEX#C71585
RGBrgb(199, 21, 133)
HSLhsl(322, 81%, 43%)
HSVhsv(322, 89%, 78%)
CMYK approx.cmyk(0, 89, 33, 22)

Color value table

FormatValueCopy
HEX#C71585
RGBrgb(199, 21, 133)
HSLhsl(322, 81%, 43%)
HSVhsv(322, 89%, 78%)
CMYK approx.cmyk(0, 89, 33, 22)
CSS keywordmediumvioletred

Contrast and classification

DarkLightness5.42:1Contrast with white3.87:1Contrast with blackMagenta / PurpleColor family

Shade and tint preview

White 10%
#CD2C91

White 30%
#D85BAA

White 70%
#EEB9DA

White 90%
#F9E8F3

Black 10%
#B31378

Black 30%
#8B0F5D

Black 70%
#3C0628

Black 90%
#14020D

Harmony palettes

Complementary

#38EA7A
#68EF9A

Analogous

#B2158D
#C72278

Triadic

#1585C7
#85C715

Split complementary

#5CEE92
#2EC064

Using Mediumvioletred

Mediumvioletred works best when it is chosen with contrast, surrounding colors, and interface state in mind. Use the HEX value for static CSS, RGB when you need channel-level control, and HSL when adjusting lightness or saturation for hover states. The CMYK value is an approximate screen-to-print conversion, so print workflows should still rely on calibrated design software or a printer profile.

CSS, SCSS, and Tailwind examples

:root {
  --color-mediumvioletred: #c71585;
}

.button-primary {
  background: var(--color-mediumvioletred);
  color: #ffffff;
}

$mediumvioletred: #c71585;

// Tailwind arbitrary value
class="bg-[#c71585] text-white"