Hex color #9d21b8, RGB(157, 33, 184) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #9d21b8 is a shade of magenta. In a RGB color space it is composed of 61.57% red, 12.94% green and 72.16% blue. In HSL notation it has 289.3° hue, 69.6% saturation and 42.5% lightness. The process color (CMYK) is combination of 14.67% cyan, 82.07% magenta, 0% yellow and 27.84% key (black). The closest short hexadecimal code of #9d21b8 is #92b.
Example CSS code:
.setFontColor { color: #9d21b8; }
.setBackgroundColor { background-color: #9d21b8; }
How to set font color?
<p style="color:#9d21b8">Font color is #9d21b8.</p>
Font color is #9d21b8.
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:#9d21b8">Background color is #9d21b8.</div>
Background color is #9d21b8.
Compromise in colors is grey.
- Edi Rama