Hex color #808000, RGB(128, 128, 0) - also known as olive - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #808000 is a shade of yellow. In a RGB color space it is composed of 50.2% red, 50.2% green and 0% blue. In HSL notation it has 60° hue, 100% saturation and 25.1% lightness. The process color (CMYK) is combination of 0% cyan, 0% magenta, 100% yellow and 49.80% key (black). The closest short hexadecimal code of #808000 is #880.
Example CSS code:
.setFontColor { color: #808000; }
.setBackgroundColor { background-color: #808000; }
How to set font color?
<p style="color:#808000">Font color is #808000.</p>
Font color is #808000.
Red was ruby, green was fluorescent, yellow was simply incandescent. Color was life. Color was everything.
Color, you see, was the universal sign of magic.
- Tahereh Mafi, Furthermore
How to set background color?
<div style="background-color:#808000">Background color is #808000.</div>
Background color is #808000.
Every person has their own colour.
- Haruki Murakami, Colorless Tsukuru Tazaki and His Years of Pilgrimage