Hex color #4d178e, RGB(77, 23, 142) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #4d178e is a shade of blue-magenta. In a RGB color space it is composed of 30.2% red, 9.02% green and 55.69% blue. In HSL notation it has 267.2° hue, 72.1% saturation and 32.4% lightness. The process color (CMYK) is combination of 45.77% cyan, 83.80% magenta, 0% yellow and 44.31% key (black). The closest short hexadecimal code of #4d178e is #418.
Example CSS code:
.setFontColor { color: #4d178e; }
.setBackgroundColor { background-color: #4d178e; }
How to set font color?
<p style="color:#4d178e">Font color is #4d178e.</p>
Font color is #4d178e.
Compromise in colors is grey.
- Edi Rama
How to set background color?
<div style="background-color:#4d178e">Background color is #4d178e.</div>
Background color is #4d178e.
Every person has their own colour.
- Haruki Murakami, Colorless Tsukuru Tazaki and His Years of Pilgrimage