HEX: #9E7DAC
RGB: (158,125,172)
#9E7DAC contains red, green and blue colors in about the same proportion. Web safe color of #9E7DAC is #996699 (or #969).
#9E7DAC color RGB value is (158,125,172).
RGB: (158,125,172) (62%,49%,67%)
R 158 of 255 = 62%
G 125 of 255 = 49%
B 172 of 255 = 67%
R + G + B ~ 59%. #9E7DAC is middle color (not dark and not light).
R + G + B =
158 + 125 + 172 = 455 (100%)
R 158 of 455 ~ 34.73%
G 125 of 455 ~ 27.47%
B 172 of 455 ~ 37.8%
#9E7DAC color CMYK value is (8,27,0,33).
CMYK: (8,27,0,33) C8M27Y0K33 (8%,27%,0%,33%) (0.08/0.27/0.00/0.33)
9E | 7D | AC | |
---|---|---|---|
RGB | 158 | 125 | 172 |
HSL | 282° | 22.07% | 58.24% |
HSB/HSV | 282° | 27.33% | 67.45% |
CMYK | 8.14% | 27.33% | 0.00% |
32.55% |
HEX | 9E | 7D | AC |
Decimal | 158 | 125 | 172 |
Binary | 10011110 | 1111101 | 10101100 |
Octal | 236 | 175 | 254 |
Examples of css and html codes for elements with #9E7DAC color. Also use rgb(158,125,172) instead hex code.
.myTextColor { color: #9E7DAC; }
<p style="color:#9E7DAC">This sample text font color is #9E7DAC.</p>
This text font color is #9E7DAC.
.myBgColor { background-color: #9E7DAC; }
<div style="background-color:#9E7DAC">Inner text</div>
This div background color is #9E7DAC.
.myBorderColor { border: 1px solid #9E7DAC; }
<div style="border:3px solid #9E7DAC">Div</div>
This div border color is #9E7DAC.
.myOpacity80 { color: #9E7DAC; opacity: 0.8; }
<p style="color:#9E7DAC;opacity:0.8;">80%</p>
Text with #9E7DAC color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #9E7DAC;}
<p style="text-shadow: 3px 3px 1px #9E7DAC">Text here.</p>
This text has shadow with #9E7DAC color.
.textShadow {text-shadow: 3px 3px 1px #9E7DAC, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #9E7DAC, 5px 5px 20px red">Text here.</p>
This text has shadow with #9E7DAC primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#9E7DAC, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#9E7DAC, Direction=45, Strength=4)">Text</p>
This text has shadow with #9E7DAC and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #9E7DAC; -webkit-box-shadow: 1px 1px 3px 2px #9E7DAC; box-shadow: 1px 1px 3px 2px #9E7DAC; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #9E7DAC; -webkit-box-shadow: 1px 1px 3px 2px #9E7DAC; box-shadow:1px 1px 3px 2px #9E7DAC;">
Div content here</div>
This text has color #9E7DAC on black background.
This text has color #9E7DAC on white background.
This text has black color on #9E7DAC background.
This text has white color on #9E7DAC background.