HEX: #9E7AAB
RGB: (158,122,171)
#9E7AAB contains red, green and blue colors in about the same proportion. Web safe color of #9E7AAB is #996699 (or #969).
#9E7AAB color RGB value is (158,122,171).
RGB: (158,122,171) (62%,48%,67%)
R 158 of 255 = 62%
G 122 of 255 = 48%
B 171 of 255 = 67%
R + G + B ~ 59%. #9E7AAB is middle color (not dark and not light).
R + G + B =
158 + 122 + 171 = 451 (100%)
R 158 of 451 ~ 35.03%
G 122 of 451 ~ 27.05%
B 171 of 451 ~ 37.92%
#9E7AAB color CMYK value is (8,29,0,33).
CMYK: (8,29,0,33) C8M29Y0K33 (8%,29%,0%,33%) (0.08/0.29/0.00/0.33)
9E | 7A | AB | |
---|---|---|---|
RGB | 158 | 122 | 171 |
HSL | 284° | 22.58% | 57.45% |
HSB/HSV | 284° | 28.65% | 67.06% |
CMYK | 7.60% | 28.65% | 0.00% |
32.94% |
HEX | 9E | 7A | AB |
Decimal | 158 | 122 | 171 |
Binary | 10011110 | 1111010 | 10101011 |
Octal | 236 | 172 | 253 |
Examples of css and html codes for elements with #9E7AAB color. Also use rgb(158,122,171) instead hex code.
.myTextColor { color: #9E7AAB; }
<p style="color:#9E7AAB">This sample text font color is #9E7AAB.</p>
This text font color is #9E7AAB.
.myBgColor { background-color: #9E7AAB; }
<div style="background-color:#9E7AAB">Inner text</div>
This div background color is #9E7AAB.
.myBorderColor { border: 1px solid #9E7AAB; }
<div style="border:3px solid #9E7AAB">Div</div>
This div border color is #9E7AAB.
.myOpacity80 { color: #9E7AAB; opacity: 0.8; }
<p style="color:#9E7AAB;opacity:0.8;">80%</p>
Text with #9E7AAB color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #9E7AAB;}
<p style="text-shadow: 3px 3px 1px #9E7AAB">Text here.</p>
This text has shadow with #9E7AAB color.
.textShadow {text-shadow: 3px 3px 1px #9E7AAB, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #9E7AAB, 5px 5px 20px red">Text here.</p>
This text has shadow with #9E7AAB primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#9E7AAB, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#9E7AAB, Direction=45, Strength=4)">Text</p>
This text has shadow with #9E7AAB and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #9E7AAB; -webkit-box-shadow: 1px 1px 3px 2px #9E7AAB; box-shadow: 1px 1px 3px 2px #9E7AAB; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #9E7AAB; -webkit-box-shadow: 1px 1px 3px 2px #9E7AAB; box-shadow:1px 1px 3px 2px #9E7AAB;">
Div content here</div>
This text has color #9E7AAB on black background.
This text has color #9E7AAB on white background.
This text has black color on #9E7AAB background.
This text has white color on #9E7AAB background.