Hex color #dc172e, RGB(220, 23, 46) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #dc172e is a shade of red. In a RGB color space it is composed of 86.27% red, 9.02% green and 18.04% blue. In HSL notation it has 353° hue, 81.1% saturation and 47.6% lightness. The process color (CMYK) is combination of 0% cyan, 89.55% magenta, 79.09% yellow and 13.73% key (black). The closest short hexadecimal code of #dc172e is #d12.
Example CSS code:
.setFontColor { color: #dc172e; }
.setBackgroundColor { background-color: #dc172e; }
How to set font color?
<p style="color:#dc172e">Font color is #dc172e.</p>
Font color is #dc172e.
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:#dc172e">Background color is #dc172e.</div>
Background color is #dc172e.
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