HEX: #B8A204
RGB: (184,162,4)
#B8A204 contains mainly red and green colors. Web safe color of #B8A204 is #CC9900 (or #C90).
#B8A204 color RGB value is (184,162,4).
RGB: (184,162,4) (72%,64%,2%)
R 184 of 255 = 72%
G 162 of 255 = 64%
B 4 of 255 = 2%
R + G + B ~ 46%. #B8A204 is middle color (not dark and not light).
R + G + B =
184 + 162 + 4 = 350 (100%)
R 184 of 350 ~ 52.57%
G 162 of 350 ~ 46.29%
B 4 of 350 ~ 1.14%
#B8A204 color CMYK value is (0,12,98,28).
CMYK: (0,12,98,28) C0M12Y98K28 (0%,12%,98%,28%) (0.00/0.12/0.98/0.28)
B8 | A2 | 04 | |
---|---|---|---|
RGB | 184 | 162 | 4 |
HSL | 53° | 95.74% | 36.86% |
HSB/HSV | 53° | 97.83% | 72.16% |
CMYK | 0.00% | 11.96% | 97.83% |
27.84% |
HEX | B8 | A2 | 04 |
Decimal | 184 | 162 | 4 |
Binary | 10111000 | 10100010 | 100 |
Octal | 270 | 242 | 4 |
Examples of css and html codes for elements with #B8A204 color. Also use rgb(184,162,4) instead hex code.
.myTextColor { color: #B8A204; }
<p style="color:#B8A204">This sample text font color is #B8A204.</p>
This text font color is #B8A204.
.myBgColor { background-color: #B8A204; }
<div style="background-color:#B8A204">Inner text</div>
This div background color is #B8A204.
.myBorderColor { border: 1px solid #B8A204; }
<div style="border:3px solid #B8A204">Div</div>
This div border color is #B8A204.
.myOpacity80 { color: #B8A204; opacity: 0.8; }
<p style="color:#B8A204;opacity:0.8;">80%</p>
Text with #B8A204 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #B8A204;}
<p style="text-shadow: 3px 3px 1px #B8A204">Text here.</p>
This text has shadow with #B8A204 color.
.textShadow {text-shadow: 3px 3px 1px #B8A204, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #B8A204, 5px 5px 20px red">Text here.</p>
This text has shadow with #B8A204 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#B8A204, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#B8A204, Direction=45, Strength=4)">Text</p>
This text has shadow with #B8A204 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #B8A204; -webkit-box-shadow: 1px 1px 3px 2px #B8A204; box-shadow: 1px 1px 3px 2px #B8A204; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #B8A204; -webkit-box-shadow: 1px 1px 3px 2px #B8A204; box-shadow:1px 1px 3px 2px #B8A204;">
Div content here</div>
This text has color #B8A204 on black background.
This text has color #B8A204 on white background.
This text has black color on #B8A204 background.
This text has white color on #B8A204 background.