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