Medium Violet Red
Hex #C71585, rgb(199 21 133). A pink CSS named color.
Open in palette generatorMedium Violet Red color codes
Click any value to copy it.
- HEX
- RGB
- HSL
- HSV
- HWB
- CMYK
- OKLCH
- OKLab
- Lab
- LCH
- CSS keyword
About Medium Violet Red
Medium Violet Red is a medium vivid pink with the hex code #C71585. In RGB it is made of 199 red, 21 green and 133 blue; in HSL its hue is 322°, with 81% saturation and 43% lightness. Its perceptual lightness (OKLCH L) is 55.3%.
It is a CSS named color, so you can write "mediumvioletred" anywhere CSS accepts a color. Against white it has a contrast ratio of 5.42:1 and against black 3.87:1, so white text reads better on it and passes WCAG AA for normal text.
Tints, shades and tones
Medium Violet Red mixed step by step with white, black and middle gray (#808080).
Tints (with white)
Shades (with black)
Tones (with gray)
Medium Violet Red 50-950 scale
A Tailwind-style scale built in OKLCH; the original color sits on the step with the closest lightness.
Colors that go with Medium Violet Red
Color harmonies rotate the hue in OKLCH and keep the lightness and chroma. Each color links to its closest named color.
Complementary
Split complementary
Monochromatic
Contrast and readability
WCAG 2 contrast of Medium Violet Red with white and black. The readable text color on Medium Violet Red is white.
On white5.42:1
- AA pass
- AA Large pass
- AAA fail
- UI 3:1 pass
APCA Lc 75
On black3.87:1
- AA fail
- AA Large pass
- AAA fail
- UI 3:1 pass
APCA Lc -27
Test any pair in the contrast checker.
Color blindness preview
How Medium Violet Red appears with each type of color vision deficiency (simulated with the Machado model).
- Protanopia#3D5787
- Deuteranopia#707481
- Tritanopia#D6004F
- Protanomaly#795086
- Deuteranomaly#896682
- Tritanomaly#CE0A70
- Achromatopsia#6A6A6A
Colors similar to Medium Violet Red
The closest named colors by perceptual difference (OKLab).
Use Medium Violet Red in CSS and Tailwind
.medium-violet-red {
color: mediumvioletred; /* #C71585 */
background-color: rgb(199 21 133);
border-color: oklch(55.3% 0.222 349.7);
}/* Tailwind CSS v4: bg-medium-violet-red-500, text-medium-violet-red-700... */
@theme {
--color-medium-violet-red-50: #FFF8FB;
--color-medium-violet-red-100: #FFE5F0;
--color-medium-violet-red-200: #FFC9E2;
--color-medium-violet-red-300: #FC9DCC;
--color-medium-violet-red-400: #EF5FAD;
--color-medium-violet-red-500: #E1309A;
--color-medium-violet-red-600: #C71585;
--color-medium-violet-red-700: #A3076B;
--color-medium-violet-red-800: #820D56;
--color-medium-violet-red-900: #690F45;
--color-medium-violet-red-950: #2F001B;
}
<!-- or the exact color, no config -->
<div class="bg-[#C71585] text-[#FFFFFF]">…</div>