#ba1b8a ≈ Medium Violet Red
#ba1b8a is a color from the magenta family, with medium lightness and strong saturation. In the RGB model it is made of 72.94% red, 10.59% green and 54.12% blue; printed in CMYK it uses 0% cyan, 85.48% magenta, 25.81% yellow and 27.06% black. Its hue angle is 318.11°, with 74.65% saturation and 41.76% 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 5.81:1 (WCAG AA). The closest named color is Medium Violet Red (#c71585), ΔE 3.24.
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.1306 |
Shades
#ba1b8a mixed progressively with black.
Tints
#ba1b8a mixed progressively with white.
Tones
#ba1b8a mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-ba1b8a {
color: #ba1b8a;
}
.bg-ba1b8a {
background-color: #ba1b8a;
color: #ffffff;
}
.border-ba1b8a {
border: 2px solid #ba1b8a;
}
:root {
--color-primary: #ba1b8a;
--color-primary-rgb: 186 27 138;
--color-primary-hsl: 318 75% 42%;
}
.gradient-ba1b8a {
background: linear-gradient(135deg, #ba1b8a, #ba1b3b);
}
.shadow-ba1b8a {
box-shadow: 0 8px 24px rgb(186 27 138 / 0.35);
}
Medium Violet Red
#ba1b8a rgb(186, 27, 138) hsl(318, 75%, 42%) Medium Violet Red
#1bba4b rgb(27, 186, 75) hsl(138, 75%, 42%) Lime Green
#8aba1b rgb(138, 186, 27) hsl(78, 75%, 42%) Apple Green
#1b8aba rgb(27, 138, 186) hsl(198, 75%, 42%) Cerulean