Hex color #2a5024, RGB(42, 80, 36) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #2a5024 is a shade of green. In a RGB color space it is composed of 16.47% red, 31.37% green and 14.12% blue. In HSL notation it has 111.8° hue, 37.9% saturation and 22.7% lightness. The process color (CMYK) is combination of 47.5% cyan, 0% magenta, 55% yellow and 68.63% key (black). The closest short hexadecimal code of #2a5024 is #252.
Example CSS code:
.setFontColor { color: #2a5024; }
.setBackgroundColor { background-color: #2a5024; }
How to set font color?
<p style="color:#2a5024">Font color is #2a5024.</p>
Font color is #2a5024.
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:#2a5024">Background color is #2a5024.</div>
Background color is #2a5024.
Compromise in colors is grey.
- Edi Rama