#542acc ≈ Han Purple
#542acc is a color from the violet family, with medium lightness and strong saturation. In the RGB model it is made of 32.94% red, 16.47% green and 80% blue; printed in CMYK it uses 58.82% cyan, 79.41% magenta, 0% yellow and 20% black. Its hue angle is 255.56°, with 65.85% saturation and 48.24% 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 brand accents. White text on this color reaches a contrast ratio of 8.14:1 (WCAG AAA). The closest named color is Han Purple (#5218fa), ΔE 5.2.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #6633cc |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.079 |
Shades
#542acc mixed progressively with black.
Tints
#542acc mixed progressively with white.
Tones
#542acc mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-542acc {
color: #542acc;
}
.bg-542acc {
background-color: #542acc;
color: #ffffff;
}
.border-542acc {
border: 2px solid #542acc;
}
:root {
--color-primary: #542acc;
--color-primary-rgb: 84 42 204;
--color-primary-hsl: 256 66% 48%;
}
.gradient-542acc {
background: linear-gradient(135deg, #542acc, #a52acc);
}
.shadow-542acc {
box-shadow: 0 8px 24px rgb(84 42 204 / 0.35);
}
Han Purple
#542acc rgb(84, 42, 204) hsl(256, 66%, 48%) Han Purple
#a2cc2a rgb(162, 204, 42) hsl(76, 66%, 48%) Yellow Green
#cc542a rgb(204, 84, 42) hsl(16, 66%, 48%) Sinopia
#2acc54 rgb(42, 204, 84) hsl(136, 66%, 48%) Malachite