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