HEX: #8A7DAB
RGB: (138,125,171)
#8A7DAB contains red, green and blue colors in about the same proportion. Web safe color of #8A7DAB is #996699 (or #969).
#8A7DAB color RGB value is (138,125,171).
RGB: (138,125,171) (54%,49%,67%)
R 138 of 255 = 54%
G 125 of 255 = 49%
B 171 of 255 = 67%
R + G + B ~ 57%. #8A7DAB is middle color (not dark and not light).
R + G + B =
138 + 125 + 171 = 434 (100%)
R 138 of 434 ~ 31.8%
G 125 of 434 ~ 28.8%
B 171 of 434 ~ 39.4%
#8A7DAB color CMYK value is (19,27,0,33).
CMYK: (19,27,0,33) C19M27Y0K33 (19%,27%,0%,33%) (0.19/0.27/0.00/0.33)
8A | 7D | AB | |
---|---|---|---|
RGB | 138 | 125 | 171 |
HSL | 257° | 21.50% | 58.04% |
HSB/HSV | 257° | 26.90% | 67.06% |
CMYK | 19.30% | 26.90% | 0.00% |
32.94% |
HEX | 8A | 7D | AB |
Decimal | 138 | 125 | 171 |
Binary | 10001010 | 1111101 | 10101011 |
Octal | 212 | 175 | 253 |
Examples of css and html codes for elements with #8A7DAB color. Also use rgb(138,125,171) instead hex code.
.myTextColor { color: #8A7DAB; }
<p style="color:#8A7DAB">This sample text font color is #8A7DAB.</p>
This text font color is #8A7DAB.
.myBgColor { background-color: #8A7DAB; }
<div style="background-color:#8A7DAB">Inner text</div>
This div background color is #8A7DAB.
.myBorderColor { border: 1px solid #8A7DAB; }
<div style="border:3px solid #8A7DAB">Div</div>
This div border color is #8A7DAB.
.myOpacity80 { color: #8A7DAB; opacity: 0.8; }
<p style="color:#8A7DAB;opacity:0.8;">80%</p>
Text with #8A7DAB color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #8A7DAB;}
<p style="text-shadow: 3px 3px 1px #8A7DAB">Text here.</p>
This text has shadow with #8A7DAB color.
.textShadow {text-shadow: 3px 3px 1px #8A7DAB, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #8A7DAB, 5px 5px 20px red">Text here.</p>
This text has shadow with #8A7DAB primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#8A7DAB, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#8A7DAB, Direction=45, Strength=4)">Text</p>
This text has shadow with #8A7DAB and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #8A7DAB; -webkit-box-shadow: 1px 1px 3px 2px #8A7DAB; box-shadow: 1px 1px 3px 2px #8A7DAB; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #8A7DAB; -webkit-box-shadow: 1px 1px 3px 2px #8A7DAB; box-shadow:1px 1px 3px 2px #8A7DAB;">
Div content here</div>
This text has color #8A7DAB on black background.
This text has color #8A7DAB on white background.
This text has black color on #8A7DAB background.
This text has white color on #8A7DAB background.