#d021a7 ≈ Medium Violet Red
#d021a7 is a color from the magenta family, with medium lightness and strong saturation. In the RGB model it is made of 81.57% red, 12.94% green and 65.49% blue; printed in CMYK it uses 0% cyan, 84.13% magenta, 19.71% yellow and 18.43% black. Its hue angle is 314.06°, with 72.61% saturation and 47.25% 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.71:1 (WCAG AA). The closest named color is Medium Violet Red (#c71585), ΔE 6.31.
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.1729 |
Shades
#d021a7 mixed progressively with black.
Tints
#d021a7 mixed progressively with white.
Tones
#d021a7 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-d021a7 {
color: #d021a7;
}
.bg-d021a7 {
background-color: #d021a7;
color: #ffffff;
}
.border-d021a7 {
border: 2px solid #d021a7;
}
:root {
--color-primary: #d021a7;
--color-primary-rgb: 208 33 167;
--color-primary-hsl: 314 73% 47%;
}
.gradient-d021a7 {
background: linear-gradient(135deg, #d021a7, #d0214f);
}
.shadow-d021a7 {
box-shadow: 0 8px 24px rgb(208 33 167 / 0.35);
}
Medium Violet Red
#d021a7 rgb(208, 33, 167) hsl(314, 73%, 47%) Medium Violet Red
#21d04a rgb(33, 208, 74) hsl(134, 73%, 47%) Malachite
#a7d021 rgb(167, 208, 33) hsl(74, 73%, 47%) Yellow Green
#21a7d0 rgb(33, 167, 208) hsl(194, 73%, 47%) Bondi Blue