#c400a2 ≈ Medium Violet Red
#c400a2 is a color from the magenta family, with low lightness and vivid saturation. In the RGB model it is made of 76.86% red, 0% green and 63.53% blue; printed in CMYK it uses 0% cyan, 100% magenta, 17.35% yellow and 23.14% black. Its hue angle is 310.41°, with 100% saturation and 38.43% 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 call-to-action buttons. 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 6.14.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #cc0099 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.1434 |
Shades
#c400a2 mixed progressively with black.
Tints
#c400a2 mixed progressively with white.
Tones
#c400a2 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-c400a2 {
color: #c400a2;
}
.bg-c400a2 {
background-color: #c400a2;
color: #ffffff;
}
.border-c400a2 {
border: 2px solid #c400a2;
}
:root {
--color-primary: #c400a2;
--color-primary-rgb: 196 0 162;
--color-primary-hsl: 310 100% 38%;
}
.gradient-c400a2 {
background: linear-gradient(135deg, #c400a2, #c40040);
}
.shadow-c400a2 {
box-shadow: 0 8px 24px rgb(196 0 162 / 0.35);
}
Medium Violet Red
#c400a2 rgb(196, 0, 162) hsl(310, 100%, 38%) Medium Violet Red
#00c422 rgb(0, 196, 34) hsl(130, 100%, 38%) Lime Green
#a2c400 rgb(162, 196, 0) hsl(70, 100%, 38%) Yellow Green
#00a2c4 rgb(0, 162, 196) hsl(190, 100%, 38%) Bondi Blue