Hex color #228b22, RGB(34, 139, 34) - also known as forest green - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #228b22 is a shade of green. In a RGB color space it is composed of 13.33% red, 54.51% green and 13.33% blue. In HSL notation it has 120° hue, 60.7% saturation and 33.9% lightness. The process color (CMYK) is combination of 75.54% cyan, 0% magenta, 75.54% yellow and 45.49% key (black). The closest short hexadecimal code of #228b22 is #282.
Example CSS code:
.setFontColor { color: #228b22; }
.setBackgroundColor { background-color: #228b22; }
How to set font color?
<p style="color:#228b22">Font color is #228b22.</p>
Font color is #228b22.
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:#228b22">Background color is #228b22.</div>
Background color is #228b22.
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