Hex color #ba7bc4, RGB(186, 123, 196) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #ba7bc4 is a shade of magenta. In a RGB color space it is composed of 72.94% red, 48.24% green and 76.86% blue. In HSL notation it has 291.8° hue, 38.2% saturation and 62.5% lightness. The process color (CMYK) is combination of 5.10% cyan, 37.24% magenta, 0% yellow and 23.14% key (black). The closest short hexadecimal code of #ba7bc4 is #b7c.
Example CSS code:
.setFontColor { color: #ba7bc4; }
.setBackgroundColor { background-color: #ba7bc4; }
How to set font color?
<p style="color:#ba7bc4">Font color is #ba7bc4.</p>
Font color is #ba7bc4.
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:#ba7bc4">Background color is #ba7bc4.</div>
Background color is #ba7bc4.
Compromise in colors is grey.
- Edi Rama