#540afa ≈ Han Purple
#540afa is a color from the violet family, with medium lightness and vivid saturation. In the RGB model it is made of 32.94% red, 3.92% green and 98.04% blue; printed in CMYK it uses 66.4% cyan, 96% magenta, 0% yellow and 1.96% black. Its hue angle is 258.5°, with 96% saturation and 50.98% 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.5:1 (WCAG AAA). The closest named color is Han Purple (#5218fa), ΔE 0.87.
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.09 |
Shades
#540afa mixed progressively with black.
Tints
#540afa mixed progressively with white.
Tones
#540afa mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-540afa {
color: #540afa;
}
.bg-540afa {
background-color: #540afa;
color: #ffffff;
}
.border-540afa {
border: 2px solid #540afa;
}
:root {
--color-primary: #540afa;
--color-primary-rgb: 84 10 250;
--color-primary-hsl: 259 96% 51%;
}
.gradient-540afa {
background: linear-gradient(135deg, #540afa, #cc0afa);
}
.shadow-540afa {
box-shadow: 0 8px 24px rgb(84 10 250 / 0.35);
}
Han Purple
#540afa rgb(84, 10, 250) hsl(259, 96%, 51%) Han Purple
#b0fa0a rgb(176, 250, 10) hsl(79, 96%, 51%) Spring Bud
#fa540a rgb(250, 84, 10) hsl(19, 96%, 51%) International Orange
#0afa54 rgb(10, 250, 84) hsl(139, 96%, 51%) Lime