HEX: #9F5DDB
RGB: (159,93,219)
#9F5DDB contains mainly blue color. Web safe color of #9F5DDB is #9966CC (or #96C).
#9F5DDB color RGB value is (159,93,219).
RGB: (159,93,219) (62%,36%,86%)
R 159 of 255 = 62%
G 93 of 255 = 36%
B 219 of 255 = 86%
R + G + B ~ 61%. #9F5DDB is quite light color.
R + G + B =
159 + 93 + 219 = 471 (100%)
R 159 of 471 ~ 33.76%
G 93 of 471 ~ 19.75%
B 219 of 471 ~ 46.5%
#9F5DDB color CMYK value is (27,58,0,14).
CMYK: (27,58,0,14) C27M58Y0K14 (27%,58%,0%,14%) (0.27/0.58/0.00/0.14)
9F | 5D | DB | |
---|---|---|---|
RGB | 159 | 93 | 219 |
HSL | 271° | 63.64% | 61.18% |
HSB/HSV | 271° | 57.53% | 85.88% |
CMYK | 27.40% | 57.53% | 0.00% |
14.12% |
HEX | 9F | 5D | DB |
Decimal | 159 | 93 | 219 |
Binary | 10011111 | 1011101 | 11011011 |
Octal | 237 | 135 | 333 |
Examples of css and html codes for elements with #9F5DDB color. Also use rgb(159,93,219) instead hex code.
.myTextColor { color: #9F5DDB; }
<p style="color:#9F5DDB">This sample text font color is #9F5DDB.</p>
This text font color is #9F5DDB.
.myBgColor { background-color: #9F5DDB; }
<div style="background-color:#9F5DDB">Inner text</div>
This div background color is #9F5DDB.
.myBorderColor { border: 1px solid #9F5DDB; }
<div style="border:3px solid #9F5DDB">Div</div>
This div border color is #9F5DDB.
.myOpacity80 { color: #9F5DDB; opacity: 0.8; }
<p style="color:#9F5DDB;opacity:0.8;">80%</p>
Text with #9F5DDB color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #9F5DDB;}
<p style="text-shadow: 3px 3px 1px #9F5DDB">Text here.</p>
This text has shadow with #9F5DDB color.
.textShadow {text-shadow: 3px 3px 1px #9F5DDB, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #9F5DDB, 5px 5px 20px red">Text here.</p>
This text has shadow with #9F5DDB primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#9F5DDB, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#9F5DDB, Direction=45, Strength=4)">Text</p>
This text has shadow with #9F5DDB and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #9F5DDB; -webkit-box-shadow: 1px 1px 3px 2px #9F5DDB; box-shadow: 1px 1px 3px 2px #9F5DDB; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #9F5DDB; -webkit-box-shadow: 1px 1px 3px 2px #9F5DDB; box-shadow:1px 1px 3px 2px #9F5DDB;">
Div content here</div>
This text has color #9F5DDB on black background.
This text has color #9F5DDB on white background.
This text has black color on #9F5DDB background.
This text has white color on #9F5DDB background.