Hex color #4b0082, RGB(75, 0, 130) - also known as indigo - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #4b0082 is a shade of blue-magenta. In a RGB color space it is composed of 29.41% red, 0% green and 50.98% blue. In HSL notation it has 274.6° hue, 100% saturation and 25.5% lightness. The process color (CMYK) is combination of 42.31% cyan, 100% magenta, 0% yellow and 49.02% key (black). The closest short hexadecimal code of #4b0082 is #408.
Example CSS code:
.setFontColor { color: #4b0082; }
.setBackgroundColor { background-color: #4b0082; }
How to set font color?
<p style="color:#4b0082">Font color is #4b0082.</p>
Font color is #4b0082.
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
How to set background color?
<div style="background-color:#4b0082">Background color is #4b0082.</div>
Background color is #4b0082.
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