Hex color #ba0cb8, RGB(186, 12, 184) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #ba0cb8 is a shade of magenta. In a RGB color space it is composed of 72.94% red, 4.71% green and 72.16% blue. In HSL notation it has 300.7° hue, 87.9% saturation and 38.8% lightness. The process color (CMYK) is combination of 0% cyan, 93.55% magenta, 1.08% yellow and 27.06% key (black). The closest short hexadecimal code of #ba0cb8 is #b0b.
Example CSS code:
.setFontColor { color: #ba0cb8; }
.setBackgroundColor { background-color: #ba0cb8; }
How to set font color?
<p style="color:#ba0cb8">Font color is #ba0cb8.</p>
Font color is #ba0cb8.
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:#ba0cb8">Background color is #ba0cb8.</div>
Background color is #ba0cb8.
Every person has their own colour.
- Haruki Murakami, Colorless Tsukuru Tazaki and His Years of Pilgrimage