Hex color #9837a7, RGB(152, 55, 167) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #9837a7 is a shade of magenta. In a RGB color space it is composed of 59.61% red, 21.57% green and 65.49% blue. In HSL notation it has 292° hue, 50.5% saturation and 43.5% lightness. The process color (CMYK) is combination of 8.98% cyan, 67.07% magenta, 0% yellow and 34.51% key (black). The closest short hexadecimal code of #9837a7 is #93a.
Example CSS code:
.setFontColor { color: #9837a7; }
.setBackgroundColor { background-color: #9837a7; }
How to set font color?
<p style="color:#9837a7">Font color is #9837a7.</p>
Font color is #9837a7.
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:#9837a7">Background color is #9837a7.</div>
Background color is #9837a7.
Every person has their own colour.
- Haruki Murakami, Colorless Tsukuru Tazaki and His Years of Pilgrimage