#c40b8a ≈ Medium Violet Red
#c40b8a is a color from the magenta family, with medium lightness and strong saturation. In the RGB model it is made of 76.86% red, 4.31% green and 54.12% blue; printed in CMYK it uses 0% cyan, 94.39% magenta, 29.59% yellow and 23.14% black. Its hue angle is 318.81°, with 89.37% saturation and 40.59% 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.58:1 (WCAG AA). The closest named color is Medium Violet Red (#c71585), ΔE 1.77.
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.1381 |
Shades
#c40b8a mixed progressively with black.
Tints
#c40b8a mixed progressively with white.
Tones
#c40b8a mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-c40b8a {
color: #c40b8a;
}
.bg-c40b8a {
background-color: #c40b8a;
color: #ffffff;
}
.border-c40b8a {
border: 2px solid #c40b8a;
}
:root {
--color-primary: #c40b8a;
--color-primary-rgb: 196 11 138;
--color-primary-hsl: 319 89% 41%;
}
.gradient-c40b8a {
background: linear-gradient(135deg, #c40b8a, #c40b2e);
}
.shadow-c40b8a {
box-shadow: 0 8px 24px rgb(196 11 138 / 0.35);
}
Medium Violet Red
#c40b8a rgb(196, 11, 138) hsl(319, 89%, 41%) Medium Violet Red
#0bc445 rgb(11, 196, 69) hsl(139, 89%, 41%) Lime Green
#8ac40b rgb(138, 196, 11) hsl(79, 89%, 41%) Yellow Green
#0b8ac4 rgb(11, 138, 196) hsl(199, 89%, 41%) Steel Blue