#540ef4 ≈ Han Purple
#540ef4 is a color from the violet family, with medium lightness and vivid saturation. In the RGB model it is made of 32.94% red, 5.49% green and 95.69% blue; printed in CMYK it uses 65.57% cyan, 94.26% magenta, 0% yellow and 4.31% black. Its hue angle is 258.26°, with 91.27% saturation and 50.59% 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.65:1 (WCAG AAA). The closest named color is Han Purple (#5218fa), ΔE 1.19.
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.0873 |
Shades
#540ef4 mixed progressively with black.
Tints
#540ef4 mixed progressively with white.
Tones
#540ef4 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-540ef4 {
color: #540ef4;
}
.bg-540ef4 {
background-color: #540ef4;
color: #ffffff;
}
.border-540ef4 {
border: 2px solid #540ef4;
}
:root {
--color-primary: #540ef4;
--color-primary-rgb: 84 14 244;
--color-primary-hsl: 258 91% 51%;
}
.gradient-540ef4 {
background: linear-gradient(135deg, #540ef4, #c70ef4);
}
.shadow-540ef4 {
box-shadow: 0 8px 24px rgb(84 14 244 / 0.35);
}
Han Purple
#540ef4 rgb(84, 14, 244) hsl(258, 91%, 51%) Han Purple
#aef40e rgb(174, 244, 14) hsl(78, 91%, 51%) Spring Bud
#f4540e rgb(244, 84, 14) hsl(18, 91%, 51%) Tangelo
#0ef454 rgb(14, 244, 84) hsl(138, 91%, 51%) Spring Green