HEX: #9D8ADD
RGB: (157,138,221)
#9D8ADD contains mainly blue color. Web safe color of #9D8ADD is #9999CC (or #99C).
#9D8ADD color RGB value is (157,138,221).
RGB: (157,138,221) (62%,54%,87%)
R 157 of 255 = 62%
G 138 of 255 = 54%
B 221 of 255 = 87%
R + G + B ~ 68%. #9D8ADD is quite light color.
R + G + B =
157 + 138 + 221 = 516 (100%)
R 157 of 516 ~ 30.43%
G 138 of 516 ~ 26.74%
B 221 of 516 ~ 42.83%
#9D8ADD color CMYK value is (29,38,0,13).
CMYK: (29,38,0,13) C29M38Y0K13 (29%,38%,0%,13%) (0.29/0.38/0.00/0.13)
9D | 8A | DD | |
---|---|---|---|
RGB | 157 | 138 | 221 |
HSL | 254° | 54.97% | 70.39% |
HSB/HSV | 254° | 37.56% | 86.67% |
CMYK | 28.96% | 37.56% | 0.00% |
13.33% |
HEX | 9D | 8A | DD |
Decimal | 157 | 138 | 221 |
Binary | 10011101 | 10001010 | 11011101 |
Octal | 235 | 212 | 335 |
Examples of css and html codes for elements with #9D8ADD color. Also use rgb(157,138,221) instead hex code.
.myTextColor { color: #9D8ADD; }
<p style="color:#9D8ADD">This sample text font color is #9D8ADD.</p>
This text font color is #9D8ADD.
.myBgColor { background-color: #9D8ADD; }
<div style="background-color:#9D8ADD">Inner text</div>
This div background color is #9D8ADD.
.myBorderColor { border: 1px solid #9D8ADD; }
<div style="border:3px solid #9D8ADD">Div</div>
This div border color is #9D8ADD.
.myOpacity80 { color: #9D8ADD; opacity: 0.8; }
<p style="color:#9D8ADD;opacity:0.8;">80%</p>
Text with #9D8ADD color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #9D8ADD;}
<p style="text-shadow: 3px 3px 1px #9D8ADD">Text here.</p>
This text has shadow with #9D8ADD color.
.textShadow {text-shadow: 3px 3px 1px #9D8ADD, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #9D8ADD, 5px 5px 20px red">Text here.</p>
This text has shadow with #9D8ADD primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#9D8ADD, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#9D8ADD, Direction=45, Strength=4)">Text</p>
This text has shadow with #9D8ADD and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #9D8ADD; -webkit-box-shadow: 1px 1px 3px 2px #9D8ADD; box-shadow: 1px 1px 3px 2px #9D8ADD; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #9D8ADD; -webkit-box-shadow: 1px 1px 3px 2px #9D8ADD; box-shadow:1px 1px 3px 2px #9D8ADD;">
Div content here</div>
This text has color #9D8ADD on black background.
This text has color #9D8ADD on white background.
This text has black color on #9D8ADD background.
This text has white color on #9D8ADD background.