Hex color #40122e, RGB(64, 18, 46) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #40122e is a shade of red-magenta. In a RGB color space it is composed of 25.1% red, 7.06% green and 18.04% blue. In HSL notation it has 323.5° hue, 56.1% saturation and 16.1% lightness. The process color (CMYK) is combination of 0% cyan, 71.88% magenta, 28.12% yellow and 74.90% key (black). The closest short hexadecimal code of #40122e is #412.
Example CSS code:
.setFontColor { color: #40122e; }
.setBackgroundColor { background-color: #40122e; }
How to set font color?
<p style="color:#40122e">Font color is #40122e.</p>
Font color is #40122e.
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:#40122e">Background color is #40122e.</div>
Background color is #40122e.
Compromise in colors is grey.
- Edi Rama