Hex color #7f0c0c, RGB(127, 12, 12) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #7f0c0c is a shade of red. In a RGB color space it is composed of 49.8% red, 4.71% green and 4.71% blue. In HSL notation it has 0° hue, 82.7% saturation and 27.3% lightness. The process color (CMYK) is combination of 0% cyan, 90.55% magenta, 90.55% yellow and 50.20% key (black). The closest short hexadecimal code of #7f0c0c is #700.
Example CSS code:
.setFontColor { color: #7f0c0c; }
.setBackgroundColor { background-color: #7f0c0c; }
How to set font color?
<p style="color:#7f0c0c">Font color is #7f0c0c.</p>
Font color is #7f0c0c.
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:#7f0c0c">Background color is #7f0c0c.</div>
Background color is #7f0c0c.
Every person has their own colour.
- Haruki Murakami, Colorless Tsukuru Tazaki and His Years of Pilgrimage