#af217a ≈ Medium Violet Red
#af217a is a color from the rose family, with medium lightness and strong saturation. In the RGB model it is made of 68.63% red, 12.94% green and 47.84% blue; printed in CMYK it uses 0% cyan, 81.14% magenta, 30.29% yellow and 31.37% black. Its hue angle is 322.39°, with 68.27% saturation and 40.78% 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 6.32:1 (WCAG AA). The closest named color is Medium Violet Red (#c71585), ΔE 4.48.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #993366 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.1161 |
Shades
#af217a mixed progressively with black.
Tints
#af217a mixed progressively with white.
Tones
#af217a mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-af217a {
color: #af217a;
}
.bg-af217a {
background-color: #af217a;
color: #ffffff;
}
.border-af217a {
border: 2px solid #af217a;
}
:root {
--color-primary: #af217a;
--color-primary-rgb: 175 33 122;
--color-primary-hsl: 322 68% 41%;
}
.gradient-af217a {
background: linear-gradient(135deg, #af217a, #af2133);
}
.shadow-af217a {
box-shadow: 0 8px 24px rgb(175 33 122 / 0.35);
}
Medium Violet Red
#af217a rgb(175, 33, 122) hsl(322, 68%, 41%) Medium Violet Red
#21af56 rgb(33, 175, 86) hsl(142, 68%, 41%) Medium Sea Green
#7aaf21 rgb(122, 175, 33) hsl(82, 68%, 41%) Apple Green
#217aaf rgb(33, 122, 175) hsl(202, 68%, 41%) Cerulean