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