#8a1271 ≈ Mardi Gras
#8a1271 is a color from the magenta family, with low lightness and moderate saturation. In the RGB model it is made of 54.12% red, 7.06% green and 44.31% blue; printed in CMYK it uses 0% cyan, 86.96% magenta, 18.12% yellow and 45.88% black. Its hue angle is 312.5°, with 76.92% saturation and 30.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 corporate identities. White text on this color reaches a contrast ratio of 8.73:1 (WCAG AAA). The closest named color is Mardi Gras (#880085), ΔE 4.79.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #990066 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.0703 |
Shades
#8a1271 mixed progressively with black.
Tints
#8a1271 mixed progressively with white.
Tones
#8a1271 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-8a1271 {
color: #8a1271;
}
.bg-8a1271 {
background-color: #8a1271;
color: #ffffff;
}
.border-8a1271 {
border: 2px solid #8a1271;
}
:root {
--color-primary: #8a1271;
--color-primary-rgb: 138 18 113;
--color-primary-hsl: 313 77% 31%;
}
.gradient-8a1271 {
background: linear-gradient(135deg, #8a1271, #8a1235);
}
.shadow-8a1271 {
box-shadow: 0 8px 24px rgb(138 18 113 / 0.35);
}
Mardi Gras
#8a1271 rgb(138, 18, 113) hsl(313, 77%, 31%) Mardi Gras
#128a2b rgb(18, 138, 43) hsl(133, 77%, 31%) Forest Green
#718a12 rgb(113, 138, 18) hsl(73, 77%, 31%) Olive Drab
#12718a rgb(18, 113, 138) hsl(193, 77%, 31%) Teal Blue