HEX: #8A6BAE
RGB: (138,107,174)
#8A6BAE contains mainly red and blue colors. Web safe color of #8A6BAE is #996699 (or #969).
#8A6BAE color RGB value is (138,107,174).
RGB: (138,107,174) (54%,42%,68%)
R 138 of 255 = 54%
G 107 of 255 = 42%
B 174 of 255 = 68%
R + G + B ~ 55%. #8A6BAE is middle color (not dark and not light).
R + G + B =
138 + 107 + 174 = 419 (100%)
R 138 of 419 ~ 32.94%
G 107 of 419 ~ 25.54%
B 174 of 419 ~ 41.53%
#8A6BAE color CMYK value is (21,39,0,32).
CMYK: (21,39,0,32) C21M39Y0K32 (21%,39%,0%,32%) (0.21/0.39/0.00/0.32)
8A | 6B | AE | |
---|---|---|---|
RGB | 138 | 107 | 174 |
HSL | 268° | 29.26% | 55.10% |
HSB/HSV | 268° | 38.51% | 68.24% |
CMYK | 20.69% | 38.51% | 0.00% |
31.76% |
HEX | 8A | 6B | AE |
Decimal | 138 | 107 | 174 |
Binary | 10001010 | 1101011 | 10101110 |
Octal | 212 | 153 | 256 |
Examples of css and html codes for elements with #8A6BAE color. Also use rgb(138,107,174) instead hex code.
.myTextColor { color: #8A6BAE; }
<p style="color:#8A6BAE">This sample text font color is #8A6BAE.</p>
This text font color is #8A6BAE.
.myBgColor { background-color: #8A6BAE; }
<div style="background-color:#8A6BAE">Inner text</div>
This div background color is #8A6BAE.
.myBorderColor { border: 1px solid #8A6BAE; }
<div style="border:3px solid #8A6BAE">Div</div>
This div border color is #8A6BAE.
.myOpacity80 { color: #8A6BAE; opacity: 0.8; }
<p style="color:#8A6BAE;opacity:0.8;">80%</p>
Text with #8A6BAE color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #8A6BAE;}
<p style="text-shadow: 3px 3px 1px #8A6BAE">Text here.</p>
This text has shadow with #8A6BAE color.
.textShadow {text-shadow: 3px 3px 1px #8A6BAE, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #8A6BAE, 5px 5px 20px red">Text here.</p>
This text has shadow with #8A6BAE primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#8A6BAE, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#8A6BAE, Direction=45, Strength=4)">Text</p>
This text has shadow with #8A6BAE and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #8A6BAE; -webkit-box-shadow: 1px 1px 3px 2px #8A6BAE; box-shadow: 1px 1px 3px 2px #8A6BAE; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #8A6BAE; -webkit-box-shadow: 1px 1px 3px 2px #8A6BAE; box-shadow:1px 1px 3px 2px #8A6BAE;">
Div content here</div>
This text has color #8A6BAE on black background.
This text has color #8A6BAE on white background.
This text has black color on #8A6BAE background.
This text has white color on #8A6BAE background.