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