Hex color #a2a200, RGB(162, 162, 0) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #a2a200 is a shade of yellow. In a RGB color space it is composed of 63.53% red, 63.53% green and 0% blue. In HSL notation it has 60° hue, 100% saturation and 31.8% lightness. The process color (CMYK) is combination of 0% cyan, 0% magenta, 100% yellow and 36.47% key (black). The closest short hexadecimal code of #a2a200 is #aa0.
Example CSS code:
.setFontColor { color: #a2a200; }
.setBackgroundColor { background-color: #a2a200; }
How to set font color?
<p style="color:#a2a200">Font color is #a2a200.</p>
Font color is #a2a200.
When you photograph people in color, you photograph their clothes. But when you photograph people in Black and white, you photograph their souls!
- Ted Grant
How to set background color?
<div style="background-color:#a2a200">Background color is #a2a200.</div>
Background color is #a2a200.
Every person has their own colour.
- Haruki Murakami, Colorless Tsukuru Tazaki and His Years of Pilgrimage