#cf157f ≈ Medium Violet Red
#cf157f is a color from the rose family, with medium lightness and strong saturation. In the RGB model it is made of 81.18% red, 8.24% green and 49.8% blue; printed in CMYK it uses 0% cyan, 89.86% magenta, 38.65% yellow and 18.82% black. Its hue angle is 325.81°, with 81.58% saturation and 44.71% 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 call-to-action buttons. White text on this color reaches a contrast ratio of 5.16:1 (WCAG AA). The closest named color is Medium Violet Red (#c71585), ΔE 2.64.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #cc0066 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.1533 |
Shades
#cf157f mixed progressively with black.
Tints
#cf157f mixed progressively with white.
Tones
#cf157f mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-cf157f {
color: #cf157f;
}
.bg-cf157f {
background-color: #cf157f;
color: #ffffff;
}
.border-cf157f {
border: 2px solid #cf157f;
}
:root {
--color-primary: #cf157f;
--color-primary-rgb: 207 21 127;
--color-primary-hsl: 326 82% 45%;
}
.gradient-cf157f {
background: linear-gradient(135deg, #cf157f, #cf1522);
}
.shadow-cf157f {
box-shadow: 0 8px 24px rgb(207 21 127 / 0.35);
}
Medium Violet Red
#cf157f rgb(207, 21, 127) hsl(326, 82%, 45%) Medium Violet Red
#15cf65 rgb(21, 207, 101) hsl(146, 82%, 45%) Emerald
#7fcf15 rgb(127, 207, 21) hsl(86, 82%, 45%) Yellow Green
#157fcf rgb(21, 127, 207) hsl(206, 82%, 45%) Tufts Blue