Hex color #2a3812, RGB(42, 56, 18) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #2a3812 is a shade of green-yellow. In a RGB color space it is composed of 16.47% red, 21.96% green and 7.06% blue. In HSL notation it has 82.1° hue, 51.4% saturation and 14.5% lightness. The process color (CMYK) is combination of 25% cyan, 0% magenta, 67.86% yellow and 78.04% key (black). The closest short hexadecimal code of #2a3812 is #231.
Example CSS code:
.setFontColor { color: #2a3812; }
.setBackgroundColor { background-color: #2a3812; }
How to set font color?
<p style="color:#2a3812">Font color is #2a3812.</p>
Font color is #2a3812.
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:#2a3812">Background color is #2a3812.</div>
Background color is #2a3812.
Every person has their own colour.
- Haruki Murakami, Colorless Tsukuru Tazaki and His Years of Pilgrimage