#d31fac ≈ Medium Violet Red
#d31fac is a color from the magenta family, with medium lightness and strong saturation. In the RGB model it is made of 82.75% red, 12.16% green and 67.45% blue; printed in CMYK it uses 0% cyan, 85.31% magenta, 18.48% yellow and 17.25% black. Its hue angle is 313°, with 74.38% saturation and 47.45% lightness in HSL. It sits between warm and cool, and is often associated with creativity, boldness and individuality. Designers typically use it for beauty and cosmetics, creative studios and brand accents. White text on this color reaches a contrast ratio of 4.6:1 (WCAG AA). The closest named color is Medium Violet Red (#c71585), ΔE 7.17.
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.1781 |
Shades
#d31fac mixed progressively with black.
Tints
#d31fac mixed progressively with white.
Tones
#d31fac mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-d31fac {
color: #d31fac;
}
.bg-d31fac {
background-color: #d31fac;
color: #ffffff;
}
.border-d31fac {
border: 2px solid #d31fac;
}
:root {
--color-primary: #d31fac;
--color-primary-rgb: 211 31 172;
--color-primary-hsl: 313 74% 47%;
}
.gradient-d31fac {
background: linear-gradient(135deg, #d31fac, #d31f52);
}
.shadow-d31fac {
box-shadow: 0 8px 24px rgb(211 31 172 / 0.35);
}
Medium Violet Red
#d31fac rgb(211, 31, 172) hsl(313, 74%, 47%) Medium Violet Red
#1fd346 rgb(31, 211, 70) hsl(133, 74%, 47%) Malachite
#acd31f rgb(172, 211, 31) hsl(73, 74%, 47%) Yellow Green
#1facd3 rgb(31, 172, 211) hsl(193, 74%, 47%) Moonstone Blue