#cd31a2 ≈ Medium Violet Red
#cd31a2 is a color from the magenta family, with medium lightness and strong saturation. In the RGB model it is made of 80.39% red, 19.22% green and 63.53% blue; printed in CMYK it uses 0% cyan, 76.1% magenta, 20.98% yellow and 19.61% black. Its hue angle is 316.54°, with 61.42% saturation and 49.8% 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.61:1 (WCAG AA). The closest named color is Medium Violet Red (#c71585), ΔE 5.97.
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.1778 |
Shades
#cd31a2 mixed progressively with black.
Tints
#cd31a2 mixed progressively with white.
Tones
#cd31a2 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-cd31a2 {
color: #cd31a2;
}
.bg-cd31a2 {
background-color: #cd31a2;
color: #ffffff;
}
.border-cd31a2 {
border: 2px solid #cd31a2;
}
:root {
--color-primary: #cd31a2;
--color-primary-rgb: 205 49 162;
--color-primary-hsl: 317 61% 50%;
}
.gradient-cd31a2 {
background: linear-gradient(135deg, #cd31a2, #cd3154);
}
.shadow-cd31a2 {
box-shadow: 0 8px 24px rgb(205 49 162 / 0.35);
}
Medium Violet Red
#cd31a2 rgb(205, 49, 162) hsl(317, 61%, 50%) Medium Violet Red
#31cd5c rgb(49, 205, 92) hsl(137, 61%, 50%) Malachite
#a2cd31 rgb(162, 205, 49) hsl(77, 61%, 50%) Yellow Green
#31a2cd rgb(49, 162, 205) hsl(197, 61%, 50%) Carolina Blue