HEX: #520666
RGB: (82,6,102)
#520666 contains mainly red and blue colors. Web safe color of #520666 is #660066 (or #606).
#520666 color RGB value is (82,6,102).
RGB: (82,6,102) (32%,2%,40%)
R 82 of 255 = 32%
G 6 of 255 = 2%
B 102 of 255 = 40%
R + G + B ~ 25%. #520666 is quite dark color.
R + G + B =
82 + 6 + 102 = 190 (100%)
R 82 of 190 ~ 43.16%
G 6 of 190 ~ 3.16%
B 102 of 190 ~ 53.68%
#520666 color CMYK value is (20,94,0,60).
CMYK: (20,94,0,60) C20M94Y0K60 (20%,94%,0%,60%) (0.20/0.94/0.00/0.60)
52 | 06 | 66 | |
---|---|---|---|
RGB | 82 | 6 | 102 |
HSL | 288° | 88.89% | 21.18% |
HSB/HSV | 288° | 94.12% | 40.00% |
CMYK | 19.61% | 94.12% | 0.00% |
60.00% |
HEX | 52 | 06 | 66 |
Decimal | 82 | 6 | 102 |
Binary | 1010010 | 110 | 1100110 |
Octal | 122 | 6 | 146 |
Examples of css and html codes for elements with #520666 color. Also use rgb(82,6,102) instead hex code.
.myTextColor { color: #520666; }
<p style="color:#520666">This sample text font color is #520666.</p>
This text font color is #520666.
.myBgColor { background-color: #520666; }
<div style="background-color:#520666">Inner text</div>
This div background color is #520666.
.myBorderColor { border: 1px solid #520666; }
<div style="border:3px solid #520666">Div</div>
This div border color is #520666.
.myOpacity80 { color: #520666; opacity: 0.8; }
<p style="color:#520666;opacity:0.8;">80%</p>
Text with #520666 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #520666;}
<p style="text-shadow: 3px 3px 1px #520666">Text here.</p>
This text has shadow with #520666 color.
.textShadow {text-shadow: 3px 3px 1px #520666, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #520666, 5px 5px 20px red">Text here.</p>
This text has shadow with #520666 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#520666, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#520666, Direction=45, Strength=4)">Text</p>
This text has shadow with #520666 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #520666; -webkit-box-shadow: 1px 1px 3px 2px #520666; box-shadow: 1px 1px 3px 2px #520666; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #520666; -webkit-box-shadow: 1px 1px 3px 2px #520666; box-shadow:1px 1px 3px 2px #520666;">
Div content here</div>
This text has color #520666 on black background.
This text has color #520666 on white background.
This text has black color on #520666 background.
This text has white color on #520666 background.