Hex Color #ff00ff

Information about #ff00ff hex color code is provided on this page.

  • Hex Color #ff00ff
  • RGB color: rgb(255,0,255)

Background color #ff00ff

#ff00ff
rgb(255,0,255)

Background color #ff00ff with opacity 0.5

#ff00ff
opacity:0.5
rgb(255,0,255,0.5)

How to use #ff00ff color code in CSS stylesheet

You can color any HTML element with #ff00ff hex color using the examples below.

color: #ff00ff;
background-color: #ff00ff;
background-color: rgb(255,0,255);

#ff00ff CSS codes

You can use CSS classes to color any HTML element with #ff00ff hex color.

To change the color of the element, add the css class ff00ff to any HTML element, such as a div, like in the example below:

<div class='ff00ff'>
Copy this div element to your HTML file
</div>

Now copy the code below to your CSS file:

.ff00ff {color:#ff00ff;}

You will get this result: #ff00ff

Alternatively, you can change the background color of the element, by using this CSS code:

.ff00ff {background-color:#ff00ff; padding:10px;}

You will get this result:

#ff00ff

More examples using #ff00ff CSS classes

.bg-color-ff00ff {background-color:#ff00ff;}
.hex-color-ff00ff {color:#ff00ff;}
.border-color-ff00ff {border:1px solid #ff00ff;}

#ff00ff CSS codes using !important

.bg-color {background-color:#ff00ff !important;}
.hex-color {color:#ff00ff !important;}
.border-color {border:1px solid #ff00ff !important;}

#ff00ff is the same as RGB color (255,0,255)

255,0,255 RGB color code is the same color as #ff00ff hex color code and can be used in css as such: rgb(255,0,255).

Comments on color #ff00ff

Similar Colors

Here are colors that are similar to #ff00ff

Random Colors

Click on any hex color value to get more info.

The information presented on this page is about #ff00ff web color code. For information about different color codes visit gethexcolor.com