Hex color #5117ff, RGB(81, 23, 255) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #5117ff is a shade of blue-magenta. In a RGB color space it is composed of 31.76% red, 9.02% green and 100% blue. In HSL notation it has 255° hue, 100% saturation and 54.5% lightness. The process color (CMYK) is combination of 68.24% cyan, 90.98% magenta, 0% yellow and 0% key (black). The closest short hexadecimal code of #5117ff is #51f.
Example CSS code:
.setFontColor { color: #5117ff; }
.setBackgroundColor { background-color: #5117ff; }
How to set font color?
<p style="color:#5117ff">Font color is #5117ff.</p>
Font color is #5117ff.
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:#5117ff">Background color is #5117ff.</div>
Background color is #5117ff.
Compromise in colors is grey.
- Edi Rama