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