Hex color #540776, RGB(84, 7, 118) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #540776 is a shade of blue-magenta. In a RGB color space it is composed of 32.94% red, 2.75% green and 46.27% blue. In HSL notation it has 281.6° hue, 88.8% saturation and 24.5% lightness. The process color (CMYK) is combination of 28.81% cyan, 94.07% magenta, 0% yellow and 53.73% key (black). The closest short hexadecimal code of #540776 is #507.
Example CSS code:
.setFontColor { color: #540776; }
.setBackgroundColor { background-color: #540776; }
How to set font color?
<p style="color:#540776">Font color is #540776.</p>
Font color is #540776.
When you photograph people in color, you photograph their clothes. But when you photograph people in Black and white, you photograph their souls!
- Ted Grant
How to set background color?
<div style="background-color:#540776">Background color is #540776.</div>
Background color is #540776.
Compromise in colors is grey.
- Edi Rama