#d1218a ≈ Medium Violet Red
#d1218a is a color from the rose family, with medium lightness and strong saturation. In the RGB model it is made of 81.96% red, 12.94% green and 54.12% blue; printed in CMYK it uses 0% cyan, 84.21% magenta, 33.97% yellow and 18.04% black. Its hue angle is 324.2°, with 72.73% saturation and 47.45% 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.89:1 (WCAG AA). The closest named color is Medium Violet Red (#c71585), ΔE 2.8.
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.1648 |
Shades
#d1218a mixed progressively with black.
Tints
#d1218a mixed progressively with white.
Tones
#d1218a mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-d1218a {
color: #d1218a;
}
.bg-d1218a {
background-color: #d1218a;
color: #ffffff;
}
.border-d1218a {
border: 2px solid #d1218a;
}
:root {
--color-primary: #d1218a;
--color-primary-rgb: 209 33 138;
--color-primary-hsl: 324 73% 47%;
}
.gradient-d1218a {
background: linear-gradient(135deg, #d1218a, #d12132);
}
.shadow-d1218a {
box-shadow: 0 8px 24px rgb(209 33 138 / 0.35);
}
Medium Violet Red
#d1218a rgb(209, 33, 138) hsl(324, 73%, 47%) Medium Violet Red
#21d168 rgb(33, 209, 104) hsl(144, 73%, 47%) Malachite
#8ad121 rgb(138, 209, 33) hsl(84, 73%, 47%) Yellow Green
#218ad1 rgb(33, 138, 209) hsl(204, 73%, 47%) Bleu de France