#540fa2 ≈ Indigo
#540fa2 is a color from the violet family, with low lightness and strong saturation. In the RGB model it is made of 32.94% red, 5.88% green and 63.53% blue; printed in CMYK it uses 48.15% cyan, 90.74% magenta, 0% yellow and 36.47% black. Its hue angle is 268.16°, with 83.05% saturation and 34.71% 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 corporate identities. White text on this color reaches a contrast ratio of 10.68:1 (WCAG AAA). The closest named color is Indigo (#4b0082), ΔE 5.18.
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.0484 |
Shades
#540fa2 mixed progressively with black.
Tints
#540fa2 mixed progressively with white.
Tones
#540fa2 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-540fa2 {
color: #540fa2;
}
.bg-540fa2 {
background-color: #540fa2;
color: #ffffff;
}
.border-540fa2 {
border: 2px solid #540fa2;
}
:root {
--color-primary: #540fa2;
--color-primary-rgb: 84 15 162;
--color-primary-hsl: 268 83% 35%;
}
.gradient-540fa2 {
background: linear-gradient(135deg, #540fa2, #9e0fa2);
}
.shadow-540fa2 {
box-shadow: 0 8px 24px rgb(84 15 162 / 0.35);
}
Indigo
#540fa2 rgb(84, 15, 162) hsl(268, 83%, 35%) Indigo
#5da20f rgb(93, 162, 15) hsl(88, 83%, 35%) Olive Drab
#a2540f rgb(162, 84, 15) hsl(28, 83%, 35%) Sienna
#0fa254 rgb(15, 162, 84) hsl(148, 83%, 35%) Shamrock Green