HEX: #B8B821
RGB: (184,184,33)
#B8B821 contains mainly red and green colors. Web safe color of #B8B821 is #CCCC33 (or #CC3).
#B8B821 color RGB value is (184,184,33).
RGB: (184,184,33) (72%,72%,13%)
R 184 of 255 = 72%
G 184 of 255 = 72%
B 33 of 255 = 13%
R + G + B ~ 52%. #B8B821 is middle color (not dark and not light).
R + G + B =
184 + 184 + 33 = 401 (100%)
R 184 of 401 ~ 45.89%
G 184 of 401 ~ 45.89%
B 33 of 401 ~ 8.23%
#B8B821 color CMYK value is (0,0,82,28).
CMYK: (0,0,82,28) C0M0Y82K28 (0%,0%,82%,28%) (0.00/0.00/0.82/0.28)
B8 | B8 | 21 | |
---|---|---|---|
RGB | 184 | 184 | 33 |
HSL | 60° | 69.59% | 42.55% |
HSB/HSV | 60° | 82.07% | 72.16% |
CMYK | 0.00% | 0.00% | 82.07% |
27.84% |
HEX | B8 | B8 | 21 |
Decimal | 184 | 184 | 33 |
Binary | 10111000 | 10111000 | 100001 |
Octal | 270 | 270 | 41 |
Examples of css and html codes for elements with #B8B821 color. Also use rgb(184,184,33) instead hex code.
.myTextColor { color: #B8B821; }
<p style="color:#B8B821">This sample text font color is #B8B821.</p>
This text font color is #B8B821.
.myBgColor { background-color: #B8B821; }
<div style="background-color:#B8B821">Inner text</div>
This div background color is #B8B821.
.myBorderColor { border: 1px solid #B8B821; }
<div style="border:3px solid #B8B821">Div</div>
This div border color is #B8B821.
.myOpacity80 { color: #B8B821; opacity: 0.8; }
<p style="color:#B8B821;opacity:0.8;">80%</p>
Text with #B8B821 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #B8B821;}
<p style="text-shadow: 3px 3px 1px #B8B821">Text here.</p>
This text has shadow with #B8B821 color.
.textShadow {text-shadow: 3px 3px 1px #B8B821, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #B8B821, 5px 5px 20px red">Text here.</p>
This text has shadow with #B8B821 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#B8B821, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#B8B821, Direction=45, Strength=4)">Text</p>
This text has shadow with #B8B821 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #B8B821; -webkit-box-shadow: 1px 1px 3px 2px #B8B821; box-shadow: 1px 1px 3px 2px #B8B821; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #B8B821; -webkit-box-shadow: 1px 1px 3px 2px #B8B821; box-shadow:1px 1px 3px 2px #B8B821;">
Div content here</div>
This text has color #B8B821 on black background.
This text has color #B8B821 on white background.
This text has black color on #B8B821 background.
This text has white color on #B8B821 background.