Hex color #5e2ae1, RGB(94, 42, 225) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #5e2ae1 is a shade of blue-magenta. In a RGB color space it is composed of 36.86% red, 16.47% green and 88.24% blue. In HSL notation it has 257° hue, 75.3% saturation and 52.4% lightness. The process color (CMYK) is combination of 58.22% cyan, 81.33% magenta, 0% yellow and 11.76% key (black). The closest short hexadecimal code of #5e2ae1 is #52e.
Example CSS code:
.setFontColor { color: #5e2ae1; }
.setBackgroundColor { background-color: #5e2ae1; }
How to set font color?
<p style="color:#5e2ae1">Font color is #5e2ae1.</p>
Font color is #5e2ae1.
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:#5e2ae1">Background color is #5e2ae1.</div>
Background color is #5e2ae1.
Every person has their own colour.
- Haruki Murakami, Colorless Tsukuru Tazaki and His Years of Pilgrimage