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