Hex color #5a9242, RGB(90, 146, 66) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #5a9242 is a shade of green-yellow. In a RGB color space it is composed of 35.29% red, 57.25% green and 25.88% blue. In HSL notation it has 102° hue, 37.7% saturation and 41.6% lightness. The process color (CMYK) is combination of 38.36% cyan, 0% magenta, 54.79% yellow and 42.75% key (black). The closest short hexadecimal code of #5a9242 is #594.
Example CSS code:
.setFontColor { color: #5a9242; }
.setBackgroundColor { background-color: #5a9242; }
How to set font color?
<p style="color:#5a9242">Font color is #5a9242.</p>
Font color is #5a9242.
Compromise in colors is grey.
- Edi Rama
How to set background color?
<div style="background-color:#5a9242">Background color is #5a9242.</div>
Background color is #5a9242.
Every person has their own colour.
- Haruki Murakami, Colorless Tsukuru Tazaki and His Years of Pilgrimage