HEX: #8A6DAB
RGB: (138,109,171)
#8A6DAB contains mainly red and blue colors. Web safe color of #8A6DAB is #996699 (or #969).
#8A6DAB color RGB value is (138,109,171).
RGB: (138,109,171) (54%,43%,67%)
R 138 of 255 = 54%
G 109 of 255 = 43%
B 171 of 255 = 67%
R + G + B ~ 55%. #8A6DAB is middle color (not dark and not light).
R + G + B =
138 + 109 + 171 = 418 (100%)
R 138 of 418 ~ 33.01%
G 109 of 418 ~ 26.08%
B 171 of 418 ~ 40.91%
#8A6DAB color CMYK value is (19,36,0,33).
CMYK: (19,36,0,33) C19M36Y0K33 (19%,36%,0%,33%) (0.19/0.36/0.00/0.33)
8A | 6D | AB | |
---|---|---|---|
RGB | 138 | 109 | 171 |
HSL | 268° | 26.96% | 54.90% |
HSB/HSV | 268° | 36.26% | 67.06% |
CMYK | 19.30% | 36.26% | 0.00% |
32.94% |
HEX | 8A | 6D | AB |
Decimal | 138 | 109 | 171 |
Binary | 10001010 | 1101101 | 10101011 |
Octal | 212 | 155 | 253 |
Examples of css and html codes for elements with #8A6DAB color. Also use rgb(138,109,171) instead hex code.
.myTextColor { color: #8A6DAB; }
<p style="color:#8A6DAB">This sample text font color is #8A6DAB.</p>
This text font color is #8A6DAB.
.myBgColor { background-color: #8A6DAB; }
<div style="background-color:#8A6DAB">Inner text</div>
This div background color is #8A6DAB.
.myBorderColor { border: 1px solid #8A6DAB; }
<div style="border:3px solid #8A6DAB">Div</div>
This div border color is #8A6DAB.
.myOpacity80 { color: #8A6DAB; opacity: 0.8; }
<p style="color:#8A6DAB;opacity:0.8;">80%</p>
Text with #8A6DAB color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #8A6DAB;}
<p style="text-shadow: 3px 3px 1px #8A6DAB">Text here.</p>
This text has shadow with #8A6DAB color.
.textShadow {text-shadow: 3px 3px 1px #8A6DAB, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #8A6DAB, 5px 5px 20px red">Text here.</p>
This text has shadow with #8A6DAB primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#8A6DAB, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#8A6DAB, Direction=45, Strength=4)">Text</p>
This text has shadow with #8A6DAB and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #8A6DAB; -webkit-box-shadow: 1px 1px 3px 2px #8A6DAB; box-shadow: 1px 1px 3px 2px #8A6DAB; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #8A6DAB; -webkit-box-shadow: 1px 1px 3px 2px #8A6DAB; box-shadow:1px 1px 3px 2px #8A6DAB;">
Div content here</div>
This text has color #8A6DAB on black background.
This text has color #8A6DAB on white background.
This text has black color on #8A6DAB background.
This text has white color on #8A6DAB background.