Hex color #5a945c, RGB(90, 148, 92) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #5a945c is a shade of green. In a RGB color space it is composed of 35.29% red, 58.04% green and 36.08% blue. In HSL notation it has 122.1° hue, 24.4% saturation and 46.7% lightness. The process color (CMYK) is combination of 39.19% cyan, 0% magenta, 37.84% yellow and 41.96% key (black). The closest short hexadecimal code of #5a945c is #595.
Example CSS code:
.setFontColor { color: #5a945c; }
.setBackgroundColor { background-color: #5a945c; }
How to set font color?
<p style="color:#5a945c">Font color is #5a945c.</p>
Font color is #5a945c.
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:#5a945c">Background color is #5a945c.</div>
Background color is #5a945c.
Compromise in colors is grey.
- Edi Rama