#540a40 ≈ Tyrian Purple
#540a40 is a color from the magenta family, with very low lightness and moderate saturation. In the RGB model it is made of 32.94% red, 3.92% green and 25.1% blue; printed in CMYK it uses 0% cyan, 88.1% magenta, 23.81% yellow and 67.06% black. Its hue angle is 316.22°, with 78.72% saturation and 18.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 luxury branding. White text on this color reaches a contrast ratio of 14.05:1 (WCAG AAA). The closest named color is Tyrian Purple (#66023c), ΔE 5.32.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #660033 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.0247 |
Shades
#540a40 mixed progressively with black.
Tints
#540a40 mixed progressively with white.
Tones
#540a40 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-540a40 {
color: #540a40;
}
.bg-540a40 {
background-color: #540a40;
color: #ffffff;
}
.border-540a40 {
border: 2px solid #540a40;
}
:root {
--color-primary: #540a40;
--color-primary-rgb: 84 10 64;
--color-primary-hsl: 316 79% 18%;
}
.gradient-540a40 {
background: linear-gradient(135deg, #540a40, #540a1b);
}
.shadow-540a40 {
box-shadow: 0 8px 24px rgb(84 10 64 / 0.35);
}
Tyrian Purple
#540a40 rgb(84, 10, 64) hsl(316, 79%, 18%) Tyrian Purple
#0a541e rgb(10, 84, 30) hsl(136, 79%, 18%) Lincoln Green
#40540a rgb(64, 84, 10) hsl(76, 79%, 18%) Army Green
#0a4054 rgb(10, 64, 84) hsl(196, 79%, 18%) Midnight Green