HEX: #007812
RGB: (0,120,18)
#007812 contains mainly green color. Web safe color of #007812 is #006600 (or #060).
#007812 color RGB value is (0,120,18).
RGB: (0,120,18) (0%,47%,7%)
R 0 of 255 = 0%
G 120 of 255 = 47%
B 18 of 255 = 7%
R + G + B ~ 18%. #007812 is dark color.
R + G + B =
0 + 120 + 18 = 138 (100%)
R 0 of 138 ~ 0%
G 120 of 138 ~ 86.96%
B 18 of 138 ~ 13.04%
#007812 color CMYK value is (100,0,85,53).
CMYK: (100,0,85,53) C100M0Y85K53 (100%,0%,85%,53%) (1.00/0.00/0.85/0.53)
00 | 78 | 12 | |
---|---|---|---|
RGB | 0 | 120 | 18 |
HSL | 129° | 100.00% | 23.53% |
HSB/HSV | 129° | 100.00% | 47.06% |
CMYK | 100.00% | 0.00% | 85.00% |
52.94% |
HEX | 00 | 78 | 12 |
Decimal | 0 | 120 | 18 |
Binary | 0 | 1111000 | 10010 |
Octal | 0 | 170 | 22 |
Examples of css and html codes for elements with #007812 color. Also use rgb(0,120,18) instead hex code.
.myTextColor { color: #007812; }
<p style="color:#007812">This sample text font color is #007812.</p>
This text font color is #007812.
.myBgColor { background-color: #007812; }
<div style="background-color:#007812">Inner text</div>
This div background color is #007812.
.myBorderColor { border: 1px solid #007812; }
<div style="border:3px solid #007812">Div</div>
This div border color is #007812.
.myOpacity80 { color: #007812; opacity: 0.8; }
<p style="color:#007812;opacity:0.8;">80%</p>
Text with #007812 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #007812;}
<p style="text-shadow: 3px 3px 1px #007812">Text here.</p>
This text has shadow with #007812 color.
.textShadow {text-shadow: 3px 3px 1px #007812, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #007812, 5px 5px 20px red">Text here.</p>
This text has shadow with #007812 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#007812, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#007812, Direction=45, Strength=4)">Text</p>
This text has shadow with #007812 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #007812; -webkit-box-shadow: 1px 1px 3px 2px #007812; box-shadow: 1px 1px 3px 2px #007812; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #007812; -webkit-box-shadow: 1px 1px 3px 2px #007812; box-shadow:1px 1px 3px 2px #007812;">
Div content here</div>
This text has color #007812 on black background.
This text has color #007812 on white background.
This text has black color on #007812 background.
This text has white color on #007812 background.