HEX: #AFA71B
RGB: (175,167,27)
#AFA71B contains mainly red and green colors. Web safe color of #AFA71B is #999933 (or #993).
#AFA71B color RGB value is (175,167,27).
RGB: (175,167,27) (69%,65%,11%)
R 175 of 255 = 69%
G 167 of 255 = 65%
B 27 of 255 = 11%
R + G + B ~ 48%. #AFA71B is middle color (not dark and not light).
R + G + B =
175 + 167 + 27 = 369 (100%)
R 175 of 369 ~ 47.43%
G 167 of 369 ~ 45.26%
B 27 of 369 ~ 7.32%
#AFA71B color CMYK value is (0,5,85,31).
CMYK: (0,5,85,31) C0M5Y85K31 (0%,5%,85%,31%) (0.00/0.05/0.85/0.31)
AF | A7 | 1B | |
---|---|---|---|
RGB | 175 | 167 | 27 |
HSL | 57° | 73.27% | 39.61% |
HSB/HSV | 57° | 84.57% | 68.63% |
CMYK | 0.00% | 4.57% | 84.57% |
31.37% |
HEX | AF | A7 | 1B |
Decimal | 175 | 167 | 27 |
Binary | 10101111 | 10100111 | 11011 |
Octal | 257 | 247 | 33 |
Examples of css and html codes for elements with #AFA71B color. Also use rgb(175,167,27) instead hex code.
.myTextColor { color: #AFA71B; }
<p style="color:#AFA71B">This sample text font color is #AFA71B.</p>
This text font color is #AFA71B.
.myBgColor { background-color: #AFA71B; }
<div style="background-color:#AFA71B">Inner text</div>
This div background color is #AFA71B.
.myBorderColor { border: 1px solid #AFA71B; }
<div style="border:3px solid #AFA71B">Div</div>
This div border color is #AFA71B.
.myOpacity80 { color: #AFA71B; opacity: 0.8; }
<p style="color:#AFA71B;opacity:0.8;">80%</p>
Text with #AFA71B color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #AFA71B;}
<p style="text-shadow: 3px 3px 1px #AFA71B">Text here.</p>
This text has shadow with #AFA71B color.
.textShadow {text-shadow: 3px 3px 1px #AFA71B, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #AFA71B, 5px 5px 20px red">Text here.</p>
This text has shadow with #AFA71B primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#AFA71B, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#AFA71B, Direction=45, Strength=4)">Text</p>
This text has shadow with #AFA71B and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #AFA71B; -webkit-box-shadow: 1px 1px 3px 2px #AFA71B; box-shadow: 1px 1px 3px 2px #AFA71B; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #AFA71B; -webkit-box-shadow: 1px 1px 3px 2px #AFA71B; box-shadow:1px 1px 3px 2px #AFA71B;">
Div content here</div>
This text has color #AFA71B on black background.
This text has color #AFA71B on white background.
This text has black color on #AFA71B background.
This text has white color on #AFA71B background.