Hex color #5100a2, RGB(81, 0, 162) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #5100a2 is a shade of blue-magenta. In a RGB color space it is composed of 31.76% red, 0% green and 63.53% blue. In HSL notation it has 270° hue, 100% saturation and 31.8% lightness. The process color (CMYK) is combination of 50% cyan, 100% magenta, 0% yellow and 36.47% key (black). The closest short hexadecimal code of #5100a2 is #50a.
Example CSS code:
.setFontColor { color: #5100a2; }
.setBackgroundColor { background-color: #5100a2; }
How to set font color?
<p style="color:#5100a2">Font color is #5100a2.</p>
Font color is #5100a2.
Compromise in colors is grey.
- Edi Rama
How to set background color?
<div style="background-color:#5100a2">Background color is #5100a2.</div>
Background color is #5100a2.
Every person has their own colour.
- Haruki Murakami, Colorless Tsukuru Tazaki and His Years of Pilgrimage