Hex Color #008000

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

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

Background color #008000

#008000
rgb(0,128,0)

Background color #008000 with opacity 0.5

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

How to use #008000 color code in CSS stylesheet

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

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

#008000 CSS codes

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

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

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

Now copy the code below to your CSS file:

.008000 {color:#008000;}

You will get this result: #008000

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

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

You will get this result:

#008000

More examples using #008000 CSS classes

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

#008000 CSS codes using !important

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

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

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

Comments on color #008000

Similar Colors

Here are colors that are similar to #008000

Random Colors

Click on any hex color value to get more info.

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