Hex Color #800080

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

  • Hex Color #800080
  • RGB color: rgb(128,0,128)

Background color #800080

#800080
rgb(128,0,128)

Background color #800080 with opacity 0.5

#800080
opacity:0.5
rgb(128,0,128,0.5)

How to use #800080 color code in CSS stylesheet

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

color: #800080;
background-color: #800080;
background-color: rgb(128,0,128);

#800080 CSS codes

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

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

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

Now copy the code below to your CSS file:

.800080 {color:#800080;}

You will get this result: #800080

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

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

You will get this result:

#800080

More examples using #800080 CSS classes

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

#800080 CSS codes using !important

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

#800080 is the same as RGB color (128,0,128)

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

Comments on color #800080

Similar Colors

Here are colors that are similar to #800080

Random Colors

Click on any hex color value to get more info.

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