Hex Color #5a09a6

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

  • Hex Color #5a09a6
  • RGB color: rgb(90,9,166)

Background color #5a09a6

#5a09a6
rgb(90,9,166)

Background color #5a09a6 with opacity 0.5

#5a09a6
opacity:0.5
rgb(90,9,166,0.5)

How to use #5a09a6 color code in CSS stylesheet

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

color: #5a09a6;
background-color: #5a09a6;
background-color: rgb(90,9,166);

#5a09a6 CSS codes

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

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

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

Now copy the code below to your CSS file:

.5a09a6 {color:#5a09a6;}

You will get this result: #5a09a6

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

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

You will get this result:

#5a09a6

More examples using #5a09a6 CSS classes

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

#5a09a6 CSS codes using !important

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

#5a09a6 is the same as RGB color (90,9,166)

90,9,166 RGB color code is the same color as #5a09a6 hex color code and can be used in css as such: rgb(90,9,166).

Comments on color #5a09a6

Similar Colors

Here are colors that are similar to #5a09a6

Random Colors

Click on any hex color value to get more info.

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