HEX: #977D12
RGB: (151,125,18)
#977D12 contains mainly red and green colors. Web safe color of #977D12 is #996600 (or #960).
#977D12 color RGB value is (151,125,18).
RGB: (151,125,18) (59%,49%,7%)
R 151 of 255 = 59%
G 125 of 255 = 49%
B 18 of 255 = 7%
R + G + B ~ 38%. #977D12 is quite dark color.
R + G + B =
151 + 125 + 18 = 294 (100%)
R 151 of 294 ~ 51.36%
G 125 of 294 ~ 42.52%
B 18 of 294 ~ 6.12%
#977D12 color CMYK value is (0,17,88,41).
CMYK: (0,17,88,41) C0M17Y88K41 (0%,17%,88%,41%) (0.00/0.17/0.88/0.41)
97 | 7D | 12 | |
---|---|---|---|
RGB | 151 | 125 | 18 |
HSL | 48° | 78.70% | 33.14% |
HSB/HSV | 48° | 88.08% | 59.22% |
CMYK | 0.00% | 17.22% | 88.08% |
40.78% |
HEX | 97 | 7D | 12 |
Decimal | 151 | 125 | 18 |
Binary | 10010111 | 1111101 | 10010 |
Octal | 227 | 175 | 22 |
Examples of css and html codes for elements with #977D12 color. Also use rgb(151,125,18) instead hex code.
.myTextColor { color: #977D12; }
<p style="color:#977D12">This sample text font color is #977D12.</p>
This text font color is #977D12.
.myBgColor { background-color: #977D12; }
<div style="background-color:#977D12">Inner text</div>
This div background color is #977D12.
.myBorderColor { border: 1px solid #977D12; }
<div style="border:3px solid #977D12">Div</div>
This div border color is #977D12.
.myOpacity80 { color: #977D12; opacity: 0.8; }
<p style="color:#977D12;opacity:0.8;">80%</p>
Text with #977D12 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #977D12;}
<p style="text-shadow: 3px 3px 1px #977D12">Text here.</p>
This text has shadow with #977D12 color.
.textShadow {text-shadow: 3px 3px 1px #977D12, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #977D12, 5px 5px 20px red">Text here.</p>
This text has shadow with #977D12 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#977D12, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#977D12, Direction=45, Strength=4)">Text</p>
This text has shadow with #977D12 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #977D12; -webkit-box-shadow: 1px 1px 3px 2px #977D12; box-shadow: 1px 1px 3px 2px #977D12; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #977D12; -webkit-box-shadow: 1px 1px 3px 2px #977D12; box-shadow:1px 1px 3px 2px #977D12;">
Div content here</div>
This text has color #977D12 on black background.
This text has color #977D12 on white background.
This text has black color on #977D12 background.
This text has white color on #977D12 background.