CSS Named Color
Copy-ready color values
HEX
#C71585RGB
rgb(199, 21, 133)HSL
hsl(322, 81%, 43%)HSV
hsv(322, 89%, 78%)CMYK approx.
cmyk(0, 89, 33, 22)Color value table
| Format | Value | Copy |
|---|---|---|
| HEX | #C71585 | |
| RGB | rgb(199, 21, 133) | |
| HSL | hsl(322, 81%, 43%) | |
| HSV | hsv(322, 89%, 78%) | |
| CMYK approx. | cmyk(0, 89, 33, 22) | |
| CSS keyword | mediumvioletred |
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#68EF9AAnalogous
#B2158D#C72278Triadic
#1585C7#85C715Split complementary
#5CEE92#2EC064Using 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"