HEX: #8B51AA
RGB: (139,81,170)
#8B51AA contains mainly red and blue colors. Web safe color of #8B51AA is #996699 (or #969).
#8B51AA color RGB value is (139,81,170).
RGB: (139,81,170) (55%,32%,67%)
R 139 of 255 = 55%
G 81 of 255 = 32%
B 170 of 255 = 67%
R + G + B ~ 51%. #8B51AA is middle color (not dark and not light).
R + G + B =
139 + 81 + 170 = 390 (100%)
R 139 of 390 ~ 35.64%
G 81 of 390 ~ 20.77%
B 170 of 390 ~ 43.59%
#8B51AA color CMYK value is (18,52,0,33).
CMYK: (18,52,0,33) C18M52Y0K33 (18%,52%,0%,33%) (0.18/0.52/0.00/0.33)
8B | 51 | AA | |
---|---|---|---|
RGB | 139 | 81 | 170 |
HSL | 279° | 35.46% | 49.22% |
HSB/HSV | 279° | 52.35% | 66.67% |
CMYK | 18.24% | 52.35% | 0.00% |
33.33% |
HEX | 8B | 51 | AA |
Decimal | 139 | 81 | 170 |
Binary | 10001011 | 1010001 | 10101010 |
Octal | 213 | 121 | 252 |
Examples of css and html codes for elements with #8B51AA color. Also use rgb(139,81,170) instead hex code.
.myTextColor { color: #8B51AA; }
<p style="color:#8B51AA">This sample text font color is #8B51AA.</p>
This text font color is #8B51AA.
.myBgColor { background-color: #8B51AA; }
<div style="background-color:#8B51AA">Inner text</div>
This div background color is #8B51AA.
.myBorderColor { border: 1px solid #8B51AA; }
<div style="border:3px solid #8B51AA">Div</div>
This div border color is #8B51AA.
.myOpacity80 { color: #8B51AA; opacity: 0.8; }
<p style="color:#8B51AA;opacity:0.8;">80%</p>
Text with #8B51AA color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #8B51AA;}
<p style="text-shadow: 3px 3px 1px #8B51AA">Text here.</p>
This text has shadow with #8B51AA color.
.textShadow {text-shadow: 3px 3px 1px #8B51AA, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #8B51AA, 5px 5px 20px red">Text here.</p>
This text has shadow with #8B51AA primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#8B51AA, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#8B51AA, Direction=45, Strength=4)">Text</p>
This text has shadow with #8B51AA and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #8B51AA; -webkit-box-shadow: 1px 1px 3px 2px #8B51AA; box-shadow: 1px 1px 3px 2px #8B51AA; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #8B51AA; -webkit-box-shadow: 1px 1px 3px 2px #8B51AA; box-shadow:1px 1px 3px 2px #8B51AA;">
Div content here</div>
This text has color #8B51AA on black background.
This text has color #8B51AA on white background.
This text has black color on #8B51AA background.
This text has white color on #8B51AA background.