HEX: #C6A216
RGB: (198,162,22)
#C6A216 contains mainly red and green colors. Web safe color of #C6A216 is #CC9900 (or #C90).
#C6A216 color RGB value is (198,162,22).
RGB: (198,162,22) (78%,64%,9%)
R 198 of 255 = 78%
G 162 of 255 = 64%
B 22 of 255 = 9%
R + G + B ~ 50%. #C6A216 is middle color (not dark and not light).
R + G + B =
198 + 162 + 22 = 382 (100%)
R 198 of 382 ~ 51.83%
G 162 of 382 ~ 42.41%
B 22 of 382 ~ 5.76%
#C6A216 color CMYK value is (0,18,89,22).
CMYK: (0,18,89,22) C0M18Y89K22 (0%,18%,89%,22%) (0.00/0.18/0.89/0.22)
C6 | A2 | 16 | |
---|---|---|---|
RGB | 198 | 162 | 22 |
HSL | 48° | 80.00% | 43.14% |
HSB/HSV | 48° | 88.89% | 77.65% |
CMYK | 0.00% | 18.18% | 88.89% |
22.35% |
HEX | C6 | A2 | 16 |
Decimal | 198 | 162 | 22 |
Binary | 11000110 | 10100010 | 10110 |
Octal | 306 | 242 | 26 |
Examples of css and html codes for elements with #C6A216 color. Also use rgb(198,162,22) instead hex code.
.myTextColor { color: #C6A216; }
<p style="color:#C6A216">This sample text font color is #C6A216.</p>
This text font color is #C6A216.
.myBgColor { background-color: #C6A216; }
<div style="background-color:#C6A216">Inner text</div>
This div background color is #C6A216.
.myBorderColor { border: 1px solid #C6A216; }
<div style="border:3px solid #C6A216">Div</div>
This div border color is #C6A216.
.myOpacity80 { color: #C6A216; opacity: 0.8; }
<p style="color:#C6A216;opacity:0.8;">80%</p>
Text with #C6A216 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #C6A216;}
<p style="text-shadow: 3px 3px 1px #C6A216">Text here.</p>
This text has shadow with #C6A216 color.
.textShadow {text-shadow: 3px 3px 1px #C6A216, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #C6A216, 5px 5px 20px red">Text here.</p>
This text has shadow with #C6A216 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#C6A216, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#C6A216, Direction=45, Strength=4)">Text</p>
This text has shadow with #C6A216 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #C6A216; -webkit-box-shadow: 1px 1px 3px 2px #C6A216; box-shadow: 1px 1px 3px 2px #C6A216; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #C6A216; -webkit-box-shadow: 1px 1px 3px 2px #C6A216; box-shadow:1px 1px 3px 2px #C6A216;">
Div content here</div>
This text has color #C6A216 on black background.
This text has color #C6A216 on white background.
This text has black color on #C6A216 background.
This text has white color on #C6A216 background.