Hex color #2f5607, RGB(47, 86, 7) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #2f5607 is a shade of green-yellow. In a RGB color space it is composed of 18.43% red, 33.73% green and 2.75% blue. In HSL notation it has 89.6° hue, 84.9% saturation and 18.2% lightness. The process color (CMYK) is combination of 45.35% cyan, 0% magenta, 91.86% yellow and 66.27% key (black). The closest short hexadecimal code of #2f5607 is #250.
Example CSS code:
.setFontColor { color: #2f5607; }
.setBackgroundColor { background-color: #2f5607; }
How to set font color?
<p style="color:#2f5607">Font color is #2f5607.</p>
Font color is #2f5607.
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:#2f5607">Background color is #2f5607.</div>
Background color is #2f5607.
Compromise in colors is grey.
- Edi Rama