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