Hex color #511a55, RGB(81, 26, 85) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #511a55 is a shade of magenta. In a RGB color space it is composed of 31.76% red, 10.2% green and 33.33% blue. In HSL notation it has 295.9° hue, 53.2% saturation and 21.8% lightness. The process color (CMYK) is combination of 4.71% cyan, 69.41% magenta, 0% yellow and 66.67% key (black). The closest short hexadecimal code of #511a55 is #515.
Example CSS code:
.setFontColor { color: #511a55; }
.setBackgroundColor { background-color: #511a55; }
How to set font color?
<p style="color:#511a55">Font color is #511a55.</p>
Font color is #511a55.
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
How to set background color?
<div style="background-color:#511a55">Background color is #511a55.</div>
Background color is #511a55.
Every person has their own colour.
- Haruki Murakami, Colorless Tsukuru Tazaki and His Years of Pilgrimage