HEX: #520C6F
RGB: (82,12,111)
#520C6F contains mainly red and blue colors. Web safe color of #520C6F is #660066 (or #606).
#520C6F color RGB value is (82,12,111).
RGB: (82,12,111) (32%,5%,44%)
R 82 of 255 = 32%
G 12 of 255 = 5%
B 111 of 255 = 44%
R + G + B ~ 27%. #520C6F is quite dark color.
R + G + B =
82 + 12 + 111 = 205 (100%)
R 82 of 205 ~ 40%
G 12 of 205 ~ 5.85%
B 111 of 205 ~ 54.15%
#520C6F color CMYK value is (26,89,0,56).
CMYK: (26,89,0,56) C26M89Y0K56 (26%,89%,0%,56%) (0.26/0.89/0.00/0.56)
52 | 0C | 6F | |
---|---|---|---|
RGB | 82 | 12 | 111 |
HSL | 282° | 80.49% | 24.12% |
HSB/HSV | 282° | 89.19% | 43.53% |
CMYK | 26.13% | 89.19% | 0.00% |
56.47% |
HEX | 52 | 0C | 6F |
Decimal | 82 | 12 | 111 |
Binary | 1010010 | 1100 | 1101111 |
Octal | 122 | 14 | 157 |
Examples of css and html codes for elements with #520C6F color. Also use rgb(82,12,111) instead hex code.
.myTextColor { color: #520C6F; }
<p style="color:#520C6F">This sample text font color is #520C6F.</p>
This text font color is #520C6F.
.myBgColor { background-color: #520C6F; }
<div style="background-color:#520C6F">Inner text</div>
This div background color is #520C6F.
.myBorderColor { border: 1px solid #520C6F; }
<div style="border:3px solid #520C6F">Div</div>
This div border color is #520C6F.
.myOpacity80 { color: #520C6F; opacity: 0.8; }
<p style="color:#520C6F;opacity:0.8;">80%</p>
Text with #520C6F color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #520C6F;}
<p style="text-shadow: 3px 3px 1px #520C6F">Text here.</p>
This text has shadow with #520C6F color.
.textShadow {text-shadow: 3px 3px 1px #520C6F, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #520C6F, 5px 5px 20px red">Text here.</p>
This text has shadow with #520C6F primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#520C6F, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#520C6F, Direction=45, Strength=4)">Text</p>
This text has shadow with #520C6F and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #520C6F; -webkit-box-shadow: 1px 1px 3px 2px #520C6F; box-shadow: 1px 1px 3px 2px #520C6F; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #520C6F; -webkit-box-shadow: 1px 1px 3px 2px #520C6F; box-shadow:1px 1px 3px 2px #520C6F;">
Div content here</div>
This text has color #520C6F on black background.
This text has color #520C6F on white background.
This text has black color on #520C6F background.
This text has white color on #520C6F background.