Hex color #d7a1fc, RGB(215, 161, 252) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #d7a1fc is a shade of blue-magenta. In a RGB color space it is composed of 84.31% red, 63.14% green and 98.82% blue. In HSL notation it has 275.6° hue, 93.8% saturation and 81% lightness. The process color (CMYK) is combination of 14.68% cyan, 36.11% magenta, 0% yellow and 1.18% key (black). The closest short hexadecimal code of #d7a1fc is #daf.
Example CSS code:
.setFontColor { color: #d7a1fc; }
.setBackgroundColor { background-color: #d7a1fc; }
How to set font color?
<p style="color:#d7a1fc">Font color is #d7a1fc.</p>
Font color is #d7a1fc.
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:#d7a1fc">Background color is #d7a1fc.</div>
Background color is #d7a1fc.
Compromise in colors is grey.
- Edi Rama