#c31f87 ≈ Medium Violet Red
#c31f87 is a color from the rose family, with medium lightness and strong saturation. In the RGB model it is made of 76.47% red, 12.16% green and 52.94% blue; printed in CMYK it uses 0% cyan, 84.1% magenta, 30.77% yellow and 23.53% black. Its hue angle is 321.95°, with 72.57% saturation and 44.31% 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.43:1 (WCAG AA). The closest named color is Medium Violet Red (#c71585), ΔE 0.9.
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.1433 |
Shades
#c31f87 mixed progressively with black.
Tints
#c31f87 mixed progressively with white.
Tones
#c31f87 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-c31f87 {
color: #c31f87;
}
.bg-c31f87 {
background-color: #c31f87;
color: #ffffff;
}
.border-c31f87 {
border: 2px solid #c31f87;
}
:root {
--color-primary: #c31f87;
--color-primary-rgb: 195 31 135;
--color-primary-hsl: 322 73% 44%;
}
.gradient-c31f87 {
background: linear-gradient(135deg, #c31f87, #c31f35);
}
.shadow-c31f87 {
box-shadow: 0 8px 24px rgb(195 31 135 / 0.35);
}
Medium Violet Red
#c31f87 rgb(195, 31, 135) hsl(322, 73%, 44%) Medium Violet Red
#1fc35b rgb(31, 195, 91) hsl(142, 73%, 44%) Emerald
#87c31f rgb(135, 195, 31) hsl(82, 73%, 44%) Yellow Green
#1f87c3 rgb(31, 135, 195) hsl(202, 73%, 44%) Steel Blue