#d31c8e ≈ Medium Violet Red
#d31c8e is a color from the rose family, with medium lightness and strong saturation. In the RGB model it is made of 82.75% red, 10.98% green and 55.69% blue; printed in CMYK it uses 0% cyan, 86.73% magenta, 32.7% yellow and 17.25% black. Its hue angle is 322.62°, with 76.57% saturation and 46.86% lightness in HSL. It sits between warm and cool, and is often associated with romance, playfulness and affection. Designers typically use it for food and restaurant brands, sales and promotions and brand accents. White text on this color reaches a contrast ratio of 4.85:1 (WCAG AA). The closest named color is Medium Violet Red (#c71585), ΔE 2.99.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #cc3399 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.1663 |
Shades
#d31c8e mixed progressively with black.
Tints
#d31c8e mixed progressively with white.
Tones
#d31c8e mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-d31c8e {
color: #d31c8e;
}
.bg-d31c8e {
background-color: #d31c8e;
color: #ffffff;
}
.border-d31c8e {
border: 2px solid #d31c8e;
}
:root {
--color-primary: #d31c8e;
--color-primary-rgb: 211 28 142;
--color-primary-hsl: 323 77% 47%;
}
.gradient-d31c8e {
background: linear-gradient(135deg, #d31c8e, #d31c33);
}
.shadow-d31c8e {
box-shadow: 0 8px 24px rgb(211 28 142 / 0.35);
}
Medium Violet Red
#d31c8e rgb(211, 28, 142) hsl(323, 77%, 47%) Medium Violet Red
#1cd361 rgb(28, 211, 97) hsl(143, 77%, 47%) Malachite
#8ed31c rgb(142, 211, 28) hsl(83, 77%, 47%) Yellow Green
#1c8ed3 rgb(28, 142, 211) hsl(203, 77%, 47%) Bleu de France