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