HEX: #512970
RGB: (81,41,112)
#512970 contains mainly red and blue colors. Web safe color of #512970 is #663366 (or #636).
#512970 color RGB value is (81,41,112).
RGB: (81,41,112) (32%,16%,44%)
R 81 of 255 = 32%
G 41 of 255 = 16%
B 112 of 255 = 44%
R + G + B ~ 31%. #512970 is quite dark color.
R + G + B =
81 + 41 + 112 = 234 (100%)
R 81 of 234 ~ 34.62%
G 41 of 234 ~ 17.52%
B 112 of 234 ~ 47.86%
#512970 color CMYK value is (28,63,0,56).
CMYK: (28,63,0,56) C28M63Y0K56 (28%,63%,0%,56%) (0.28/0.63/0.00/0.56)
51 | 29 | 70 | |
---|---|---|---|
RGB | 81 | 41 | 112 |
HSL | 274° | 46.41% | 30.00% |
HSB/HSV | 274° | 63.39% | 43.92% |
CMYK | 27.68% | 63.39% | 0.00% |
56.08% |
HEX | 51 | 29 | 70 |
Decimal | 81 | 41 | 112 |
Binary | 1010001 | 101001 | 1110000 |
Octal | 121 | 51 | 160 |
Examples of css and html codes for elements with #512970 color. Also use rgb(81,41,112) instead hex code.
.myTextColor { color: #512970; }
<p style="color:#512970">This sample text font color is #512970.</p>
This text font color is #512970.
.myBgColor { background-color: #512970; }
<div style="background-color:#512970">Inner text</div>
This div background color is #512970.
.myBorderColor { border: 1px solid #512970; }
<div style="border:3px solid #512970">Div</div>
This div border color is #512970.
.myOpacity80 { color: #512970; opacity: 0.8; }
<p style="color:#512970;opacity:0.8;">80%</p>
Text with #512970 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #512970;}
<p style="text-shadow: 3px 3px 1px #512970">Text here.</p>
This text has shadow with #512970 color.
.textShadow {text-shadow: 3px 3px 1px #512970, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #512970, 5px 5px 20px red">Text here.</p>
This text has shadow with #512970 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#512970, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#512970, Direction=45, Strength=4)">Text</p>
This text has shadow with #512970 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #512970; -webkit-box-shadow: 1px 1px 3px 2px #512970; box-shadow: 1px 1px 3px 2px #512970; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #512970; -webkit-box-shadow: 1px 1px 3px 2px #512970; box-shadow:1px 1px 3px 2px #512970;">
Div content here</div>
This text has color #512970 on black background.
This text has color #512970 on white background.
This text has black color on #512970 background.
This text has white color on #512970 background.