#540ca8 ≈ Indigo
#540ca8 is a color from the violet family, with low lightness and strong saturation. In the RGB model it is made of 32.94% red, 4.71% green and 65.88% blue; printed in CMYK it uses 50% cyan, 92.86% magenta, 0% yellow and 34.12% black. Its hue angle is 267.69°, with 86.67% saturation and 35.29% lightness in HSL. It is a cool color, often associated with imagination, spirituality and luxury. 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 10.53:1 (WCAG AAA). The closest named color is Indigo (#4b0082), ΔE 5.88.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #660099 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.0497 |
Shades
#540ca8 mixed progressively with black.
Tints
#540ca8 mixed progressively with white.
Tones
#540ca8 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-540ca8 {
color: #540ca8;
}
.bg-540ca8 {
background-color: #540ca8;
color: #ffffff;
}
.border-540ca8 {
border: 2px solid #540ca8;
}
:root {
--color-primary: #540ca8;
--color-primary-rgb: 84 12 168;
--color-primary-hsl: 268 87% 35%;
}
.gradient-540ca8 {
background: linear-gradient(135deg, #540ca8, #a20ca8);
}
.shadow-540ca8 {
box-shadow: 0 8px 24px rgb(84 12 168 / 0.35);
}
Indigo
#540ca8 rgb(84, 12, 168) hsl(268, 87%, 35%) Indigo
#60a80c rgb(96, 168, 12) hsl(88, 87%, 35%) Kelly Green
#a8540c rgb(168, 84, 12) hsl(28, 87%, 35%) Sienna
#0ca854 rgb(12, 168, 84) hsl(148, 87%, 35%) Jade