HEX: #987FAF
RGB: (152,127,175)
#987FAF contains red, green and blue colors in about the same proportion. Web safe color of #987FAF is #996699 (or #969).
#987FAF color RGB value is (152,127,175).
RGB: (152,127,175) (60%,50%,69%)
R 152 of 255 = 60%
G 127 of 255 = 50%
B 175 of 255 = 69%
R + G + B ~ 60%. #987FAF is middle color (not dark and not light).
R + G + B =
152 + 127 + 175 = 454 (100%)
R 152 of 454 ~ 33.48%
G 127 of 454 ~ 27.97%
B 175 of 454 ~ 38.55%
#987FAF color CMYK value is (13,27,0,31).
CMYK: (13,27,0,31) C13M27Y0K31 (13%,27%,0%,31%) (0.13/0.27/0.00/0.31)
98 | 7F | AF | |
---|---|---|---|
RGB | 152 | 127 | 175 |
HSL | 271° | 23.08% | 59.22% |
HSB/HSV | 271° | 27.43% | 68.63% |
CMYK | 13.14% | 27.43% | 0.00% |
31.37% |
HEX | 98 | 7F | AF |
Decimal | 152 | 127 | 175 |
Binary | 10011000 | 1111111 | 10101111 |
Octal | 230 | 177 | 257 |
Examples of css and html codes for elements with #987FAF color. Also use rgb(152,127,175) instead hex code.
.myTextColor { color: #987FAF; }
<p style="color:#987FAF">This sample text font color is #987FAF.</p>
This text font color is #987FAF.
.myBgColor { background-color: #987FAF; }
<div style="background-color:#987FAF">Inner text</div>
This div background color is #987FAF.
.myBorderColor { border: 1px solid #987FAF; }
<div style="border:3px solid #987FAF">Div</div>
This div border color is #987FAF.
.myOpacity80 { color: #987FAF; opacity: 0.8; }
<p style="color:#987FAF;opacity:0.8;">80%</p>
Text with #987FAF color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #987FAF;}
<p style="text-shadow: 3px 3px 1px #987FAF">Text here.</p>
This text has shadow with #987FAF color.
.textShadow {text-shadow: 3px 3px 1px #987FAF, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #987FAF, 5px 5px 20px red">Text here.</p>
This text has shadow with #987FAF primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#987FAF, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#987FAF, Direction=45, Strength=4)">Text</p>
This text has shadow with #987FAF and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #987FAF; -webkit-box-shadow: 1px 1px 3px 2px #987FAF; box-shadow: 1px 1px 3px 2px #987FAF; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #987FAF; -webkit-box-shadow: 1px 1px 3px 2px #987FAF; box-shadow:1px 1px 3px 2px #987FAF;">
Div content here</div>
This text has color #987FAF on black background.
This text has color #987FAF on white background.
This text has black color on #987FAF background.
This text has white color on #987FAF background.