#d40fa7 ≈ Medium Violet Red
#d40fa7 is a color from the magenta family, with medium lightness and vivid saturation. In the RGB model it is made of 83.14% red, 5.88% green and 65.49% blue; printed in CMYK it uses 0% cyan, 92.92% magenta, 21.23% yellow and 16.86% black. Its hue angle is 313.71°, with 86.78% saturation and 44.51% 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 call-to-action buttons. White text on this color reaches a contrast ratio of 4.74:1 (WCAG AA). The closest named color is Medium Violet Red (#c71585), ΔE 6.2.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #cc0099 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.1713 |
Shades
#d40fa7 mixed progressively with black.
Tints
#d40fa7 mixed progressively with white.
Tones
#d40fa7 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-d40fa7 {
color: #d40fa7;
}
.bg-d40fa7 {
background-color: #d40fa7;
color: #ffffff;
}
.border-d40fa7 {
border: 2px solid #d40fa7;
}
:root {
--color-primary: #d40fa7;
--color-primary-rgb: 212 15 167;
--color-primary-hsl: 314 87% 45%;
}
.gradient-d40fa7 {
background: linear-gradient(135deg, #d40fa7, #d40f44);
}
.shadow-d40fa7 {
box-shadow: 0 8px 24px rgb(212 15 167 / 0.35);
}
Medium Violet Red
#d40fa7 rgb(212, 15, 167) hsl(314, 87%, 45%) Medium Violet Red
#0fd43c rgb(15, 212, 60) hsl(134, 87%, 45%) Lime Green
#a7d40f rgb(167, 212, 15) hsl(74, 87%, 45%) Yellow Green
#0fa7d4 rgb(15, 167, 212) hsl(194, 87%, 45%) Bondi Blue