Hex color #8a2be2, RGB(138, 43, 226) - also known as blue violet - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #8a2be2 is a shade of blue-magenta. In a RGB color space it is composed of 54.12% red, 16.86% green and 88.63% blue. In HSL notation it has 271.1° hue, 75.9% saturation and 52.7% lightness. The process color (CMYK) is combination of 38.94% cyan, 80.97% magenta, 0% yellow and 11.37% key (black). The closest short hexadecimal code of #8a2be2 is #82e.
Example CSS code:
.setFontColor { color: #8a2be2; }
.setBackgroundColor { background-color: #8a2be2; }
How to set font color?
<p style="color:#8a2be2">Font color is #8a2be2.</p>
Font color is #8a2be2.
Compromise in colors is grey.
- Edi Rama
How to set background color?
<div style="background-color:#8a2be2">Background color is #8a2be2.</div>
Background color is #8a2be2.
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