Hex Color #521c7d

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

  • Hex Color #521c7d
  • RGB color: rgb(82,28,125)

Background color #521c7d

#521c7d
rgb(82,28,125)

Background color #521c7d with opacity 0.5

#521c7d
opacity:0.5
rgb(82,28,125,0.5)

How to use #521c7d color code in CSS stylesheet

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

color: #521c7d;
background-color: #521c7d;
background-color: rgb(82,28,125);

#521c7d CSS codes

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

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

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

Now copy the code below to your CSS file:

.521c7d {color:#521c7d;}

You will get this result: #521c7d

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

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

You will get this result:

#521c7d

More examples using #521c7d CSS classes

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

#521c7d CSS codes using !important

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

#521c7d is the same as RGB color (82,28,125)

82,28,125 RGB color code is the same color as #521c7d hex color code and can be used in css as such: rgb(82,28,125).

Comments on color #521c7d

Similar Colors

Here are colors that are similar to #521c7d

Random Colors

Click on any hex color value to get more info.

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