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