Hex color #51a200, RGB(81, 162, 0) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #51a200 is a shade of green-yellow. In a RGB color space it is composed of 31.76% red, 63.53% green and 0% blue. In HSL notation it has 90° hue, 100% saturation and 31.8% lightness. The process color (CMYK) is combination of 50% cyan, 0% magenta, 100% yellow and 36.47% key (black). The closest short hexadecimal code of #51a200 is #5a0.
Example CSS code:
.setFontColor { color: #51a200; }
.setBackgroundColor { background-color: #51a200; }
How to set font color?
<p style="color:#51a200">Font color is #51a200.</p>
Font color is #51a200.
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:#51a200">Background color is #51a200.</div>
Background color is #51a200.
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