Hex color #9e1fa9, RGB(158, 31, 169) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #9e1fa9 is a shade of magenta. In a RGB color space it is composed of 61.96% red, 12.16% green and 66.27% blue. In HSL notation it has 295.2° hue, 69% saturation and 39.2% lightness. The process color (CMYK) is combination of 6.51% cyan, 81.66% magenta, 0% yellow and 33.73% key (black). The closest short hexadecimal code of #9e1fa9 is #91a.
Example CSS code:
.setFontColor { color: #9e1fa9; }
.setBackgroundColor { background-color: #9e1fa9; }
How to set font color?
<p style="color:#9e1fa9">Font color is #9e1fa9.</p>
Font color is #9e1fa9.
Compromise in colors is grey.
- Edi Rama
How to set background color?
<div style="background-color:#9e1fa9">Background color is #9e1fa9.</div>
Background color is #9e1fa9.
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