HEX: #8B3AAD
RGB: (139,58,173)
#8B3AAD contains mainly red and blue colors. Web safe color of #8B3AAD is #993399 (or #939).
#8B3AAD color RGB value is (139,58,173).
RGB: (139,58,173) (55%,23%,68%)
R 139 of 255 = 55%
G 58 of 255 = 23%
B 173 of 255 = 68%
R + G + B ~ 49%. #8B3AAD is middle color (not dark and not light).
R + G + B =
139 + 58 + 173 = 370 (100%)
R 139 of 370 ~ 37.57%
G 58 of 370 ~ 15.68%
B 173 of 370 ~ 46.76%
#8B3AAD color CMYK value is (20,66,0,32).
CMYK: (20,66,0,32) C20M66Y0K32 (20%,66%,0%,32%) (0.20/0.66/0.00/0.32)
8B | 3A | AD | |
---|---|---|---|
RGB | 139 | 58 | 173 |
HSL | 282° | 49.78% | 45.29% |
HSB/HSV | 282° | 66.47% | 67.84% |
CMYK | 19.65% | 66.47% | 0.00% |
32.16% |
HEX | 8B | 3A | AD |
Decimal | 139 | 58 | 173 |
Binary | 10001011 | 111010 | 10101101 |
Octal | 213 | 72 | 255 |
Examples of css and html codes for elements with #8B3AAD color. Also use rgb(139,58,173) instead hex code.
.myTextColor { color: #8B3AAD; }
<p style="color:#8B3AAD">This sample text font color is #8B3AAD.</p>
This text font color is #8B3AAD.
.myBgColor { background-color: #8B3AAD; }
<div style="background-color:#8B3AAD">Inner text</div>
This div background color is #8B3AAD.
.myBorderColor { border: 1px solid #8B3AAD; }
<div style="border:3px solid #8B3AAD">Div</div>
This div border color is #8B3AAD.
.myOpacity80 { color: #8B3AAD; opacity: 0.8; }
<p style="color:#8B3AAD;opacity:0.8;">80%</p>
Text with #8B3AAD color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #8B3AAD;}
<p style="text-shadow: 3px 3px 1px #8B3AAD">Text here.</p>
This text has shadow with #8B3AAD color.
.textShadow {text-shadow: 3px 3px 1px #8B3AAD, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #8B3AAD, 5px 5px 20px red">Text here.</p>
This text has shadow with #8B3AAD primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#8B3AAD, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#8B3AAD, Direction=45, Strength=4)">Text</p>
This text has shadow with #8B3AAD and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #8B3AAD; -webkit-box-shadow: 1px 1px 3px 2px #8B3AAD; box-shadow: 1px 1px 3px 2px #8B3AAD; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #8B3AAD; -webkit-box-shadow: 1px 1px 3px 2px #8B3AAD; box-shadow:1px 1px 3px 2px #8B3AAD;">
Div content here</div>
This text has color #8B3AAD on black background.
This text has color #8B3AAD on white background.
This text has black color on #8B3AAD background.
This text has white color on #8B3AAD background.