HEX: #ABAB2E
RGB: (171,171,46)
#ABAB2E contains mainly red and green colors. Web safe color of #ABAB2E is #999933 (or #993).
#ABAB2E color RGB value is (171,171,46).
RGB: (171,171,46) (67%,67%,18%)
R 171 of 255 = 67%
G 171 of 255 = 67%
B 46 of 255 = 18%
R + G + B ~ 51%. #ABAB2E is middle color (not dark and not light).
R + G + B =
171 + 171 + 46 = 388 (100%)
R 171 of 388 ~ 44.07%
G 171 of 388 ~ 44.07%
B 46 of 388 ~ 11.86%
#ABAB2E color CMYK value is (0,0,73,33).
CMYK: (0,0,73,33) C0M0Y73K33 (0%,0%,73%,33%) (0.00/0.00/0.73/0.33)
AB | AB | 2E | |
---|---|---|---|
RGB | 171 | 171 | 46 |
HSL | 60° | 57.60% | 42.55% |
HSB/HSV | 60° | 73.10% | 67.06% |
CMYK | 0.00% | 0.00% | 73.10% |
32.94% |
HEX | AB | AB | 2E |
Decimal | 171 | 171 | 46 |
Binary | 10101011 | 10101011 | 101110 |
Octal | 253 | 253 | 56 |
Examples of css and html codes for elements with #ABAB2E color. Also use rgb(171,171,46) instead hex code.
.myTextColor { color: #ABAB2E; }
<p style="color:#ABAB2E">This sample text font color is #ABAB2E.</p>
This text font color is #ABAB2E.
.myBgColor { background-color: #ABAB2E; }
<div style="background-color:#ABAB2E">Inner text</div>
This div background color is #ABAB2E.
.myBorderColor { border: 1px solid #ABAB2E; }
<div style="border:3px solid #ABAB2E">Div</div>
This div border color is #ABAB2E.
.myOpacity80 { color: #ABAB2E; opacity: 0.8; }
<p style="color:#ABAB2E;opacity:0.8;">80%</p>
Text with #ABAB2E color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #ABAB2E;}
<p style="text-shadow: 3px 3px 1px #ABAB2E">Text here.</p>
This text has shadow with #ABAB2E color.
.textShadow {text-shadow: 3px 3px 1px #ABAB2E, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #ABAB2E, 5px 5px 20px red">Text here.</p>
This text has shadow with #ABAB2E primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#ABAB2E, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#ABAB2E, Direction=45, Strength=4)">Text</p>
This text has shadow with #ABAB2E and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #ABAB2E; -webkit-box-shadow: 1px 1px 3px 2px #ABAB2E; box-shadow: 1px 1px 3px 2px #ABAB2E; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #ABAB2E; -webkit-box-shadow: 1px 1px 3px 2px #ABAB2E; box-shadow:1px 1px 3px 2px #ABAB2E;">
Div content here</div>
This text has color #ABAB2E on black background.
This text has color #ABAB2E on white background.
This text has black color on #ABAB2E background.
This text has white color on #ABAB2E background.