Hex color #502986, RGB(80, 41, 134) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #502986 is a shade of blue-magenta. In a RGB color space it is composed of 31.37% red, 16.08% green and 52.55% blue. In HSL notation it has 265.2° hue, 53.1% saturation and 34.3% lightness. The process color (CMYK) is combination of 40.30% cyan, 69.40% magenta, 0% yellow and 47.45% key (black). The closest short hexadecimal code of #502986 is #528.
Example CSS code:
.setFontColor { color: #502986; }
.setBackgroundColor { background-color: #502986; }
How to set font color?
<p style="color:#502986">Font color is #502986.</p>
Font color is #502986.
Compromise in colors is grey.
- Edi Rama
How to set background color?
<div style="background-color:#502986">Background color is #502986.</div>
Background color is #502986.
Red was ruby, green was fluorescent, yellow was simply incandescent. Color was life. Color was everything.
Color, you see, was the universal sign of magic.
- Tahereh Mafi, Furthermore