HEX: #987CEB
RGB: (152,124,235)
#987CEB contains mainly blue color. Web safe color of #987CEB is #9966FF (or #96F).
#987CEB color RGB value is (152,124,235).
RGB: (152,124,235) (60%,49%,92%)
R 152 of 255 = 60%
G 124 of 255 = 49%
B 235 of 255 = 92%
R + G + B ~ 67%. #987CEB is quite light color.
R + G + B =
152 + 124 + 235 = 511 (100%)
R 152 of 511 ~ 29.75%
G 124 of 511 ~ 24.27%
B 235 of 511 ~ 45.99%
#987CEB color CMYK value is (35,47,0,8).
CMYK: (35,47,0,8) C35M47Y0K8 (35%,47%,0%,8%) (0.35/0.47/0.00/0.08)
98 | 7C | EB | |
---|---|---|---|
RGB | 152 | 124 | 235 |
HSL | 255° | 73.51% | 70.39% |
HSB/HSV | 255° | 47.23% | 92.16% |
CMYK | 35.32% | 47.23% | 0.00% |
7.84% |
HEX | 98 | 7C | EB |
Decimal | 152 | 124 | 235 |
Binary | 10011000 | 1111100 | 11101011 |
Octal | 230 | 174 | 353 |
Examples of css and html codes for elements with #987CEB color. Also use rgb(152,124,235) instead hex code.
.myTextColor { color: #987CEB; }
<p style="color:#987CEB">This sample text font color is #987CEB.</p>
This text font color is #987CEB.
.myBgColor { background-color: #987CEB; }
<div style="background-color:#987CEB">Inner text</div>
This div background color is #987CEB.
.myBorderColor { border: 1px solid #987CEB; }
<div style="border:3px solid #987CEB">Div</div>
This div border color is #987CEB.
.myOpacity80 { color: #987CEB; opacity: 0.8; }
<p style="color:#987CEB;opacity:0.8;">80%</p>
Text with #987CEB color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #987CEB;}
<p style="text-shadow: 3px 3px 1px #987CEB">Text here.</p>
This text has shadow with #987CEB color.
.textShadow {text-shadow: 3px 3px 1px #987CEB, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #987CEB, 5px 5px 20px red">Text here.</p>
This text has shadow with #987CEB primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#987CEB, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#987CEB, Direction=45, Strength=4)">Text</p>
This text has shadow with #987CEB and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #987CEB; -webkit-box-shadow: 1px 1px 3px 2px #987CEB; box-shadow: 1px 1px 3px 2px #987CEB; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #987CEB; -webkit-box-shadow: 1px 1px 3px 2px #987CEB; box-shadow:1px 1px 3px 2px #987CEB;">
Div content here</div>
This text has color #987CEB on black background.
This text has color #987CEB on white background.
This text has black color on #987CEB background.
This text has white color on #987CEB background.