Hex color #9d7ed6, RGB(157, 126, 214) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #9d7ed6 is a shade of blue-magenta. In a RGB color space it is composed of 61.57% red, 49.41% green and 83.92% blue. In HSL notation it has 261.1° hue, 51.8% saturation and 66.7% lightness. The process color (CMYK) is combination of 26.64% cyan, 41.12% magenta, 0% yellow and 16.08% key (black). The closest short hexadecimal code of #9d7ed6 is #97d.
Example CSS code:
.setFontColor { color: #9d7ed6; }
.setBackgroundColor { background-color: #9d7ed6; }
How to set font color?
<p style="color:#9d7ed6">Font color is #9d7ed6.</p>
Font color is #9d7ed6.
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:#9d7ed6">Background color is #9d7ed6.</div>
Background color is #9d7ed6.
When you photograph people in color, you photograph their clothes. But when you photograph people in Black and white, you photograph their souls!
- Ted Grant