#ba0271 ≈ Medium Violet Red
#ba0271 is a color from the rose family, with low lightness and strong saturation. In the RGB model it is made of 72.94% red, 0.78% green and 44.31% blue; printed in CMYK it uses 0% cyan, 98.92% magenta, 39.25% yellow and 27.06% black. Its hue angle is 323.8°, with 97.87% saturation and 36.86% 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 call-to-action buttons. White text on this color reaches a contrast ratio of 6.3:1 (WCAG AA). The closest named color is Medium Violet Red (#c71585), ΔE 4.39.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #cc0066 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.1167 |
Shades
#ba0271 mixed progressively with black.
Tints
#ba0271 mixed progressively with white.
Tones
#ba0271 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-ba0271 {
color: #ba0271;
}
.bg-ba0271 {
background-color: #ba0271;
color: #ffffff;
}
.border-ba0271 {
border: 2px solid #ba0271;
}
:root {
--color-primary: #ba0271;
--color-primary-rgb: 186 2 113;
--color-primary-hsl: 324 98% 37%;
}
.gradient-ba0271 {
background: linear-gradient(135deg, #ba0271, #ba0215);
}
.shadow-ba0271 {
box-shadow: 0 8px 24px rgb(186 2 113 / 0.35);
}
Medium Violet Red
#ba0271 rgb(186, 2, 113) hsl(324, 98%, 37%) Medium Violet Red
#02ba4b rgb(2, 186, 75) hsl(144, 98%, 37%) Emerald
#71ba02 rgb(113, 186, 2) hsl(84, 98%, 37%) Kelly Green
#0271ba rgb(2, 113, 186) hsl(204, 98%, 37%) French Blue