#540cfe ≈ Han Purple
#540cfe is a color from the violet family, with medium lightness and vivid saturation. In the RGB model it is made of 32.94% red, 4.71% green and 99.61% blue; printed in CMYK it uses 66.93% cyan, 95.28% magenta, 0% yellow and 0.39% black. Its hue angle is 257.85°, with 99.18% saturation and 52.16% 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 7.34:1 (WCAG AAA). The closest named color is Han Purple (#5218fa), ΔE 0.71.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #6600ff |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.093 |
Shades
#540cfe mixed progressively with black.
Tints
#540cfe mixed progressively with white.
Tones
#540cfe mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-540cfe {
color: #540cfe;
}
.bg-540cfe {
background-color: #540cfe;
color: #ffffff;
}
.border-540cfe {
border: 2px solid #540cfe;
}
:root {
--color-primary: #540cfe;
--color-primary-rgb: 84 12 254;
--color-primary-hsl: 258 99% 52%;
}
.gradient-540cfe {
background: linear-gradient(135deg, #540cfe, #cd0cfe);
}
.shadow-540cfe {
box-shadow: 0 8px 24px rgb(84 12 254 / 0.35);
}
Han Purple
#540cfe rgb(84, 12, 254) hsl(258, 99%, 52%) Han Purple
#b6fe0c rgb(182, 254, 12) hsl(78, 99%, 52%) Spring Bud
#fe540c rgb(254, 84, 12) hsl(18, 99%, 52%) International Orange
#0cfe54 rgb(12, 254, 84) hsl(138, 99%, 52%) Lime