HEX: #511552
RGB: (81,21,82)
#511552 contains mainly red and blue colors. Web safe color of #511552 is #660066 (or #606).
#511552 color RGB value is (81,21,82).
RGB: (81,21,82) (32%,8%,32%)
R 81 of 255 = 32%
G 21 of 255 = 8%
B 82 of 255 = 32%
R + G + B ~ 24%. #511552 is dark color.
R + G + B =
81 + 21 + 82 = 184 (100%)
R 81 of 184 ~ 44.02%
G 21 of 184 ~ 11.41%
B 82 of 184 ~ 44.57%
#511552 color CMYK value is (1,74,0,68).
CMYK: (1,74,0,68) C1M74Y0K68 (1%,74%,0%,68%) (0.01/0.74/0.00/0.68)
51 | 15 | 52 | |
---|---|---|---|
RGB | 81 | 21 | 82 |
HSL | 299° | 59.22% | 20.20% |
HSB/HSV | 299° | 74.39% | 32.16% |
CMYK | 1.22% | 74.39% | 0.00% |
67.84% |
HEX | 51 | 15 | 52 |
Decimal | 81 | 21 | 82 |
Binary | 1010001 | 10101 | 1010010 |
Octal | 121 | 25 | 122 |
Examples of css and html codes for elements with #511552 color. Also use rgb(81,21,82) instead hex code.
.myTextColor { color: #511552; }
<p style="color:#511552">This sample text font color is #511552.</p>
This text font color is #511552.
.myBgColor { background-color: #511552; }
<div style="background-color:#511552">Inner text</div>
This div background color is #511552.
.myBorderColor { border: 1px solid #511552; }
<div style="border:3px solid #511552">Div</div>
This div border color is #511552.
.myOpacity80 { color: #511552; opacity: 0.8; }
<p style="color:#511552;opacity:0.8;">80%</p>
Text with #511552 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #511552;}
<p style="text-shadow: 3px 3px 1px #511552">Text here.</p>
This text has shadow with #511552 color.
.textShadow {text-shadow: 3px 3px 1px #511552, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #511552, 5px 5px 20px red">Text here.</p>
This text has shadow with #511552 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#511552, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#511552, Direction=45, Strength=4)">Text</p>
This text has shadow with #511552 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #511552; -webkit-box-shadow: 1px 1px 3px 2px #511552; box-shadow: 1px 1px 3px 2px #511552; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #511552; -webkit-box-shadow: 1px 1px 3px 2px #511552; box-shadow:1px 1px 3px 2px #511552;">
Div content here</div>
This text has color #511552 on black background.
This text has color #511552 on white background.
This text has black color on #511552 background.
This text has white color on #511552 background.