#af2f7b ≈ Medium Violet Red
#af2f7b is a color from the rose family, with medium lightness and strong saturation. In the RGB model it is made of 68.63% red, 18.43% green and 48.24% blue; printed in CMYK it uses 0% cyan, 73.14% magenta, 29.71% yellow and 31.37% black. Its hue angle is 324.38°, with 57.66% saturation and 43.53% 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 5.97:1 (WCAG AA). The closest named color is Medium Violet Red (#c71585), ΔE 4.18.
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.1258 |
Shades
#af2f7b mixed progressively with black.
Tints
#af2f7b mixed progressively with white.
Tones
#af2f7b mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-af2f7b {
color: #af2f7b;
}
.bg-af2f7b {
background-color: #af2f7b;
color: #ffffff;
}
.border-af2f7b {
border: 2px solid #af2f7b;
}
:root {
--color-primary: #af2f7b;
--color-primary-rgb: 175 47 123;
--color-primary-hsl: 324 58% 44%;
}
.gradient-af2f7b {
background: linear-gradient(135deg, #af2f7b, #af2f3b);
}
.shadow-af2f7b {
box-shadow: 0 8px 24px rgb(175 47 123 / 0.35);
}
Medium Violet Red
#af2f7b rgb(175, 47, 123) hsl(324, 58%, 44%) Medium Violet Red
#2faf63 rgb(47, 175, 99) hsl(144, 58%, 44%) Medium Sea Green
#7baf2f rgb(123, 175, 47) hsl(84, 58%, 44%) Apple Green
#2f7baf rgb(47, 123, 175) hsl(204, 58%, 44%) Steel Blue