Hex color #00ff00, RGB(0, 255, 0) - also known as lime - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #00ff00 is a shade of green. In a RGB color space it is composed of 0% red, 100% green and 0% blue. In HSL notation it has 120° hue, 100% saturation and 50% lightness. The process color (CMYK) is combination of 100% cyan, 0% magenta, 100% yellow and 0% key (black). The closest short hexadecimal code of #00ff00 is #0f0.
Example CSS code:
.setFontColor { color: #00ff00; }
.setBackgroundColor { background-color: #00ff00; }
How to set font color?
<p style="color:#00ff00">Font color is #00ff00.</p>
Font color is #00ff00.
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:#00ff00">Background color is #00ff00.</div>
Background color is #00ff00.
Every person has their own colour.
- Haruki Murakami, Colorless Tsukuru Tazaki and His Years of Pilgrimage