HEX: #668021
RGB: (102,128,33)
#668021 contains mainly red and green colors. Web safe color of #668021 is #666633 (or #663).
#668021 color RGB value is (102,128,33).
RGB: (102,128,33) (40%,50%,13%)
R 102 of 255 = 40%
G 128 of 255 = 50%
B 33 of 255 = 13%
R + G + B ~ 34%. #668021 is quite dark color.
R + G + B =
102 + 128 + 33 = 263 (100%)
R 102 of 263 ~ 38.78%
G 128 of 263 ~ 48.67%
B 33 of 263 ~ 12.55%
#668021 color CMYK value is (20,0,74,50).
CMYK: (20,0,74,50) C20M0Y74K50 (20%,0%,74%,50%) (0.20/0.00/0.74/0.50)
66 | 80 | 21 | |
---|---|---|---|
RGB | 102 | 128 | 33 |
HSL | 76° | 59.01% | 31.57% |
HSB/HSV | 76° | 74.22% | 50.20% |
CMYK | 20.31% | 0.00% | 74.22% |
49.80% |
HEX | 66 | 80 | 21 |
Decimal | 102 | 128 | 33 |
Binary | 1100110 | 10000000 | 100001 |
Octal | 146 | 200 | 41 |
Examples of css and html codes for elements with #668021 color. Also use rgb(102,128,33) instead hex code.
.myTextColor { color: #668021; }
<p style="color:#668021">This sample text font color is #668021.</p>
This text font color is #668021.
.myBgColor { background-color: #668021; }
<div style="background-color:#668021">Inner text</div>
This div background color is #668021.
.myBorderColor { border: 1px solid #668021; }
<div style="border:3px solid #668021">Div</div>
This div border color is #668021.
.myOpacity80 { color: #668021; opacity: 0.8; }
<p style="color:#668021;opacity:0.8;">80%</p>
Text with #668021 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #668021;}
<p style="text-shadow: 3px 3px 1px #668021">Text here.</p>
This text has shadow with #668021 color.
.textShadow {text-shadow: 3px 3px 1px #668021, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #668021, 5px 5px 20px red">Text here.</p>
This text has shadow with #668021 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#668021, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#668021, Direction=45, Strength=4)">Text</p>
This text has shadow with #668021 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #668021; -webkit-box-shadow: 1px 1px 3px 2px #668021; box-shadow: 1px 1px 3px 2px #668021; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #668021; -webkit-box-shadow: 1px 1px 3px 2px #668021; box-shadow:1px 1px 3px 2px #668021;">
Div content here</div>
This text has color #668021 on black background.
This text has color #668021 on white background.
This text has black color on #668021 background.
This text has white color on #668021 background.