Hex color #8000ff, RGB(128, 0, 255) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #8000ff is a shade of blue-magenta. In a RGB color space it is composed of 50.2% red, 0% green and 100% blue. In HSL notation it has 270.1° hue, 100% saturation and 50% lightness. The process color (CMYK) is combination of 49.80% cyan, 100% magenta, 0% yellow and 0% key (black). The closest short hexadecimal code of #8000ff is #80f.
Example CSS code:
.setFontColor { color: #8000ff; }
.setBackgroundColor { background-color: #8000ff; }
How to set font color?
<p style="color:#8000ff">Font color is #8000ff.</p>
Font color is #8000ff.
Compromise in colors is grey.
- Edi Rama
How to set background color?
<div style="background-color:#8000ff">Background color is #8000ff.</div>
Background color is #8000ff.
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