HEX: #512855
RGB: (81,40,85)
#512855 contains red, green and blue colors in about the same proportion. Web safe color of #512855 is #663366 (or #636).
#512855 color RGB value is (81,40,85).
RGB: (81,40,85) (32%,16%,33%)
R 81 of 255 = 32%
G 40 of 255 = 16%
B 85 of 255 = 33%
R + G + B ~ 27%. #512855 is quite dark color.
R + G + B =
81 + 40 + 85 = 206 (100%)
R 81 of 206 ~ 39.32%
G 40 of 206 ~ 19.42%
B 85 of 206 ~ 41.26%
#512855 color CMYK value is (5,53,0,67).
CMYK: (5,53,0,67) C5M53Y0K67 (5%,53%,0%,67%) (0.05/0.53/0.00/0.67)
51 | 28 | 55 | |
---|---|---|---|
RGB | 81 | 40 | 85 |
HSL | 295° | 36.00% | 24.51% |
HSB/HSV | 295° | 52.94% | 33.33% |
CMYK | 4.71% | 52.94% | 0.00% |
66.67% |
HEX | 51 | 28 | 55 |
Decimal | 81 | 40 | 85 |
Binary | 1010001 | 101000 | 1010101 |
Octal | 121 | 50 | 125 |
Examples of css and html codes for elements with #512855 color. Also use rgb(81,40,85) instead hex code.
.myTextColor { color: #512855; }
<p style="color:#512855">This sample text font color is #512855.</p>
This text font color is #512855.
.myBgColor { background-color: #512855; }
<div style="background-color:#512855">Inner text</div>
This div background color is #512855.
.myBorderColor { border: 1px solid #512855; }
<div style="border:3px solid #512855">Div</div>
This div border color is #512855.
.myOpacity80 { color: #512855; opacity: 0.8; }
<p style="color:#512855;opacity:0.8;">80%</p>
Text with #512855 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #512855;}
<p style="text-shadow: 3px 3px 1px #512855">Text here.</p>
This text has shadow with #512855 color.
.textShadow {text-shadow: 3px 3px 1px #512855, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #512855, 5px 5px 20px red">Text here.</p>
This text has shadow with #512855 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#512855, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#512855, Direction=45, Strength=4)">Text</p>
This text has shadow with #512855 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #512855; -webkit-box-shadow: 1px 1px 3px 2px #512855; box-shadow: 1px 1px 3px 2px #512855; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #512855; -webkit-box-shadow: 1px 1px 3px 2px #512855; box-shadow:1px 1px 3px 2px #512855;">
Div content here</div>
This text has color #512855 on black background.
This text has color #512855 on white background.
This text has black color on #512855 background.
This text has white color on #512855 background.