#cf2a9f ≈ Medium Violet Red
#cf2a9f is a color from the magenta family, with medium lightness and strong saturation. In the RGB model it is made of 81.18% red, 16.47% green and 62.35% blue; printed in CMYK it uses 0% cyan, 79.71% magenta, 23.19% yellow and 18.82% black. Its hue angle is 317.45°, with 66.27% saturation and 48.82% 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.68:1 (WCAG AA). The closest named color is Medium Violet Red (#c71585), ΔE 5.24.
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.1742 |
Shades
#cf2a9f mixed progressively with black.
Tints
#cf2a9f mixed progressively with white.
Tones
#cf2a9f mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-cf2a9f {
color: #cf2a9f;
}
.bg-cf2a9f {
background-color: #cf2a9f;
color: #ffffff;
}
.border-cf2a9f {
border: 2px solid #cf2a9f;
}
:root {
--color-primary: #cf2a9f;
--color-primary-rgb: 207 42 159;
--color-primary-hsl: 317 66% 49%;
}
.gradient-cf2a9f {
background: linear-gradient(135deg, #cf2a9f, #cf2a4d);
}
.shadow-cf2a9f {
box-shadow: 0 8px 24px rgb(207 42 159 / 0.35);
}
Medium Violet Red
#cf2a9f rgb(207, 42, 159) hsl(317, 66%, 49%) Medium Violet Red
#2acf5a rgb(42, 207, 90) hsl(137, 66%, 49%) Malachite
#9fcf2a rgb(159, 207, 42) hsl(77, 66%, 49%) Yellow Green
#2a9fcf rgb(42, 159, 207) hsl(197, 66%, 49%) Carolina Blue