HEX: #8B5196
RGB: (139,81,150)
#8B5196 contains mainly red and blue colors. Web safe color of #8B5196 is #996699 (or #969).
#8B5196 color RGB value is (139,81,150).
RGB: (139,81,150) (55%,32%,59%)
R 139 of 255 = 55%
G 81 of 255 = 32%
B 150 of 255 = 59%
R + G + B ~ 49%. #8B5196 is middle color (not dark and not light).
R + G + B =
139 + 81 + 150 = 370 (100%)
R 139 of 370 ~ 37.57%
G 81 of 370 ~ 21.89%
B 150 of 370 ~ 40.54%
#8B5196 color CMYK value is (7,46,0,41).
CMYK: (7,46,0,41) C7M46Y0K41 (7%,46%,0%,41%) (0.07/0.46/0.00/0.41)
8B | 51 | 96 | |
---|---|---|---|
RGB | 139 | 81 | 150 |
HSL | 290° | 29.87% | 45.29% |
HSB/HSV | 290° | 46.00% | 58.82% |
CMYK | 7.33% | 46.00% | 0.00% |
41.18% |
HEX | 8B | 51 | 96 |
Decimal | 139 | 81 | 150 |
Binary | 10001011 | 1010001 | 10010110 |
Octal | 213 | 121 | 226 |
Examples of css and html codes for elements with #8B5196 color. Also use rgb(139,81,150) instead hex code.
.myTextColor { color: #8B5196; }
<p style="color:#8B5196">This sample text font color is #8B5196.</p>
This text font color is #8B5196.
.myBgColor { background-color: #8B5196; }
<div style="background-color:#8B5196">Inner text</div>
This div background color is #8B5196.
.myBorderColor { border: 1px solid #8B5196; }
<div style="border:3px solid #8B5196">Div</div>
This div border color is #8B5196.
.myOpacity80 { color: #8B5196; opacity: 0.8; }
<p style="color:#8B5196;opacity:0.8;">80%</p>
Text with #8B5196 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #8B5196;}
<p style="text-shadow: 3px 3px 1px #8B5196">Text here.</p>
This text has shadow with #8B5196 color.
.textShadow {text-shadow: 3px 3px 1px #8B5196, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #8B5196, 5px 5px 20px red">Text here.</p>
This text has shadow with #8B5196 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#8B5196, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#8B5196, Direction=45, Strength=4)">Text</p>
This text has shadow with #8B5196 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #8B5196; -webkit-box-shadow: 1px 1px 3px 2px #8B5196; box-shadow: 1px 1px 3px 2px #8B5196; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #8B5196; -webkit-box-shadow: 1px 1px 3px 2px #8B5196; box-shadow:1px 1px 3px 2px #8B5196;">
Div content here</div>
This text has color #8B5196 on black background.
This text has color #8B5196 on white background.
This text has black color on #8B5196 background.
This text has white color on #8B5196 background.