HEX: #520158
RGB: (82,1,88)
#520158 contains mainly red and blue colors. Web safe color of #520158 is #660066 (or #606).
#520158 color RGB value is (82,1,88).
RGB: (82,1,88) (32%,0%,35%)
R 82 of 255 = 32%
G 1 of 255 = 0%
B 88 of 255 = 35%
R + G + B ~ 22%. #520158 is dark color.
R + G + B =
82 + 1 + 88 = 171 (100%)
R 82 of 171 ~ 47.95%
G 1 of 171 ~ 0.58%
B 88 of 171 ~ 51.46%
#520158 color CMYK value is (7,99,0,65).
CMYK: (7,99,0,65) C7M99Y0K65 (7%,99%,0%,65%) (0.07/0.99/0.00/0.65)
52 | 01 | 58 | |
---|---|---|---|
RGB | 82 | 1 | 88 |
HSL | 296° | 97.75% | 17.45% |
HSB/HSV | 296° | 98.86% | 34.51% |
CMYK | 6.82% | 98.86% | 0.00% |
65.49% |
HEX | 52 | 01 | 58 |
Decimal | 82 | 1 | 88 |
Binary | 1010010 | 1 | 1011000 |
Octal | 122 | 1 | 130 |
Examples of css and html codes for elements with #520158 color. Also use rgb(82,1,88) instead hex code.
.myTextColor { color: #520158; }
<p style="color:#520158">This sample text font color is #520158.</p>
This text font color is #520158.
.myBgColor { background-color: #520158; }
<div style="background-color:#520158">Inner text</div>
This div background color is #520158.
.myBorderColor { border: 1px solid #520158; }
<div style="border:3px solid #520158">Div</div>
This div border color is #520158.
.myOpacity80 { color: #520158; opacity: 0.8; }
<p style="color:#520158;opacity:0.8;">80%</p>
Text with #520158 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #520158;}
<p style="text-shadow: 3px 3px 1px #520158">Text here.</p>
This text has shadow with #520158 color.
.textShadow {text-shadow: 3px 3px 1px #520158, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #520158, 5px 5px 20px red">Text here.</p>
This text has shadow with #520158 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#520158, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#520158, Direction=45, Strength=4)">Text</p>
This text has shadow with #520158 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #520158; -webkit-box-shadow: 1px 1px 3px 2px #520158; box-shadow: 1px 1px 3px 2px #520158; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #520158; -webkit-box-shadow: 1px 1px 3px 2px #520158; box-shadow:1px 1px 3px 2px #520158;">
Div content here</div>
This text has color #520158 on black background.
This text has color #520158 on white background.
This text has black color on #520158 background.
This text has white color on #520158 background.