HEX: #513B8D
RGB: (81,59,141)
#513B8D contains mainly blue color. Web safe color of #513B8D is #663399 (or #639).
#513B8D color RGB value is (81,59,141).
RGB: (81,59,141) (32%,23%,55%)
R 81 of 255 = 32%
G 59 of 255 = 23%
B 141 of 255 = 55%
R + G + B ~ 37%. #513B8D is quite dark color.
R + G + B =
81 + 59 + 141 = 281 (100%)
R 81 of 281 ~ 28.83%
G 59 of 281 ~ 21%
B 141 of 281 ~ 50.18%
#513B8D color CMYK value is (43,58,0,45).
CMYK: (43,58,0,45) C43M58Y0K45 (43%,58%,0%,45%) (0.43/0.58/0.00/0.45)
51 | 3B | 8D | |
---|---|---|---|
RGB | 81 | 59 | 141 |
HSL | 256° | 41.00% | 39.22% |
HSB/HSV | 256° | 58.16% | 55.29% |
CMYK | 42.55% | 58.16% | 0.00% |
44.71% |
HEX | 51 | 3B | 8D |
Decimal | 81 | 59 | 141 |
Binary | 1010001 | 111011 | 10001101 |
Octal | 121 | 73 | 215 |
Examples of css and html codes for elements with #513B8D color. Also use rgb(81,59,141) instead hex code.
.myTextColor { color: #513B8D; }
<p style="color:#513B8D">This sample text font color is #513B8D.</p>
This text font color is #513B8D.
.myBgColor { background-color: #513B8D; }
<div style="background-color:#513B8D">Inner text</div>
This div background color is #513B8D.
.myBorderColor { border: 1px solid #513B8D; }
<div style="border:3px solid #513B8D">Div</div>
This div border color is #513B8D.
.myOpacity80 { color: #513B8D; opacity: 0.8; }
<p style="color:#513B8D;opacity:0.8;">80%</p>
Text with #513B8D color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #513B8D;}
<p style="text-shadow: 3px 3px 1px #513B8D">Text here.</p>
This text has shadow with #513B8D color.
.textShadow {text-shadow: 3px 3px 1px #513B8D, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #513B8D, 5px 5px 20px red">Text here.</p>
This text has shadow with #513B8D primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#513B8D, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#513B8D, Direction=45, Strength=4)">Text</p>
This text has shadow with #513B8D and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #513B8D; -webkit-box-shadow: 1px 1px 3px 2px #513B8D; box-shadow: 1px 1px 3px 2px #513B8D; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #513B8D; -webkit-box-shadow: 1px 1px 3px 2px #513B8D; box-shadow:1px 1px 3px 2px #513B8D;">
Div content here</div>
This text has color #513B8D on black background.
This text has color #513B8D on white background.
This text has black color on #513B8D background.
This text has white color on #513B8D background.