HEX: #511876
RGB: (81,24,118)
#511876 contains mainly red and blue colors. Web safe color of #511876 is #660066 (or #606).
#511876 color RGB value is (81,24,118).
RGB: (81,24,118) (32%,9%,46%)
R 81 of 255 = 32%
G 24 of 255 = 9%
B 118 of 255 = 46%
R + G + B ~ 29%. #511876 is quite dark color.
R + G + B =
81 + 24 + 118 = 223 (100%)
R 81 of 223 ~ 36.32%
G 24 of 223 ~ 10.76%
B 118 of 223 ~ 52.91%
#511876 color CMYK value is (31,80,0,54).
CMYK: (31,80,0,54) C31M80Y0K54 (31%,80%,0%,54%) (0.31/0.80/0.00/0.54)
51 | 18 | 76 | |
---|---|---|---|
RGB | 81 | 24 | 118 |
HSL | 276° | 66.20% | 27.84% |
HSB/HSV | 276° | 79.66% | 46.27% |
CMYK | 31.36% | 79.66% | 0.00% |
53.73% |
HEX | 51 | 18 | 76 |
Decimal | 81 | 24 | 118 |
Binary | 1010001 | 11000 | 1110110 |
Octal | 121 | 30 | 166 |
Examples of css and html codes for elements with #511876 color. Also use rgb(81,24,118) instead hex code.
.myTextColor { color: #511876; }
<p style="color:#511876">This sample text font color is #511876.</p>
This text font color is #511876.
.myBgColor { background-color: #511876; }
<div style="background-color:#511876">Inner text</div>
This div background color is #511876.
.myBorderColor { border: 1px solid #511876; }
<div style="border:3px solid #511876">Div</div>
This div border color is #511876.
.myOpacity80 { color: #511876; opacity: 0.8; }
<p style="color:#511876;opacity:0.8;">80%</p>
Text with #511876 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #511876;}
<p style="text-shadow: 3px 3px 1px #511876">Text here.</p>
This text has shadow with #511876 color.
.textShadow {text-shadow: 3px 3px 1px #511876, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #511876, 5px 5px 20px red">Text here.</p>
This text has shadow with #511876 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#511876, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#511876, Direction=45, Strength=4)">Text</p>
This text has shadow with #511876 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #511876; -webkit-box-shadow: 1px 1px 3px 2px #511876; box-shadow: 1px 1px 3px 2px #511876; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #511876; -webkit-box-shadow: 1px 1px 3px 2px #511876; box-shadow:1px 1px 3px 2px #511876;">
Div content here</div>
This text has color #511876 on black background.
This text has color #511876 on white background.
This text has black color on #511876 background.
This text has white color on #511876 background.