Hex color #f04cf2, RGB(240, 76, 242) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #f04cf2 is a shade of magenta. In a RGB color space it is composed of 94.12% red, 29.8% green and 94.9% blue. In HSL notation it has 299.3° hue, 86.5% saturation and 62.4% lightness. The process color (CMYK) is combination of 0.83% cyan, 68.60% magenta, 0% yellow and 5.10% key (black). The closest short hexadecimal code of #f04cf2 is #f4f.
Example CSS code:
.setFontColor { color: #f04cf2; }
.setBackgroundColor { background-color: #f04cf2; }
How to set font color?
<p style="color:#f04cf2">Font color is #f04cf2.</p>
Font color is #f04cf2.
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:#f04cf2">Background color is #f04cf2.</div>
Background color is #f04cf2.
Compromise in colors is grey.
- Edi Rama