Medium violet red #C71585
Medium violet red is one of the named colours in CSS, written mediumvioletred. White text reaches 5.42:1 on it, enough for body text.
Try on walls Preview on a website
Colour codes
| CSS keyword | mediumvioletred |
|---|---|
| HEX | #C71585 |
| RGB | rgb(199 21 133) |
| HSL | hsl(322 81% 43%) |
| OKLCH | oklch(55.3% 0.222 349.7) |
| White text | 5.42:1 · body text AA Pass |
| Black text | 3.87:1 · body text AA Fail |
Colours that go with Medium violet red
The closest colour in Sanzo Wada's A Dictionary of Color Combinations is Rosolanc Purple (#B73F74), the nearest, though visibly different. These are the colours Wada paired it with, ranked by their contrast with Medium violet red itself.
| Colour | HEX | Contrast with Medium violet red | Body text AA |
|---|---|---|---|
| Turquoise Green | #B5DECC | 3.69:1 | Fail |
| Black | #111314 | 3.44:1 | Fail |
| Light Green Yellow | #C7D14F | 3.27:1 | Fail |
| Dull Violet Black | #1E0E3F | 3.26:1 | Fail |
| Light Glaucous Blue | #A5C8D1 | 3.04:1 | Fail |
| Orange Yellow | #FCB315 | 2.99:1 | Fail |
| Red Violet | #59256A | 2.04:1 | Fail |
| Spinel Red | #F27291 | 1.96:1 | Fail |
| Orange | #F37420 | 1.89:1 | Fail |
| Cinnamon Rufous | #C27544 | 1.53:1 | Fail |
| Helvetia Blue | #005B8D | 1.34:1 | Fail |
| Olive | #837E31 | 1.29:1 | Fail |
| Andover Green | #6D7E77 | 1.26:1 | Fail |
Palettes with Rosolanc Purple
- Combination #48 Rosolanc Purple · Helvetia Blue
- Combination #144 Rosolanc Purple · Orange · Black
- Combination #170 Rosolanc Purple · Orange Yellow · Red Violet
- Combination #204 Rosolanc Purple · Cinnamon Rufous · Light Glaucous Blue
- Combination #277 Spinel Red · Rosolanc Purple · Olive · Dull Violet Black
- Combination #346 Rosolanc Purple · Turquoise Green · Light Green Yellow · Andover Green
Shades and tints of Medium violet red
Nine lightness steps in OKLCH that keep the hue of Medium violet red. Chroma is reduced only where sRGB cannot show it.
- 100#FFF1F7
- 200#FFD8E9
- 300#FFB4D7
- 400#FF7EC1
- 500#ED45A6
- 600#C61384
- 700#990064
- 800#6C0045
- 900#420029
:root {
--mediumvioletred-100: #FFF1F7;
--mediumvioletred-200: #FFD8E9;
--mediumvioletred-300: #FFB4D7;
--mediumvioletred-400: #FF7EC1;
--mediumvioletred-500: #ED45A6;
--mediumvioletred-600: #C61384;
--mediumvioletred-700: #990064;
--mediumvioletred-800: #6C0045;
--mediumvioletred-900: #420029;
}
Text that keeps Medium violet red on screen
Text #C71585 on #FFF1F7 reaches 4.95:1, which passes WCAG AA for body text. Check it on a dashboard