Hex Color #8a2db7

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

  • Hex Color #8a2db7
  • RGB color: rgb(138,45,183)

Background color #8a2db7

#8a2db7
rgb(138,45,183)

Background color #8a2db7 with opacity 0.5

#8a2db7
opacity:0.5
rgb(138,45,183,0.5)

How to use #8a2db7 color code in CSS stylesheet

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

color: #8a2db7;
background-color: #8a2db7;
background-color: rgb(138,45,183);

#8a2db7 CSS codes

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

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

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

Now copy the code below to your CSS file:

.8a2db7 {color:#8a2db7;}

You will get this result: #8a2db7

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

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

You will get this result:

#8a2db7

More examples using #8a2db7 CSS classes

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

#8a2db7 CSS codes using !important

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

#8a2db7 is the same as RGB color (138,45,183)

138,45,183 RGB color code is the same color as #8a2db7 hex color code and can be used in css as such: rgb(138,45,183).

Comments on color #8a2db7

Similar Colors

Here are colors that are similar to #8a2db7

Random Colors

Click on any hex color value to get more info.

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