HEX: #8E4A9D
RGB: (142,74,157)
#8E4A9D contains mainly red and blue colors. Web safe color of #8E4A9D is #993399 (or #939).
#8E4A9D color RGB value is (142,74,157).
RGB: (142,74,157) (56%,29%,62%)
R 142 of 255 = 56%
G 74 of 255 = 29%
B 157 of 255 = 62%
R + G + B ~ 49%. #8E4A9D is middle color (not dark and not light).
R + G + B =
142 + 74 + 157 = 373 (100%)
R 142 of 373 ~ 38.07%
G 74 of 373 ~ 19.84%
B 157 of 373 ~ 42.09%
#8E4A9D color CMYK value is (10,53,0,38).
CMYK: (10,53,0,38) C10M53Y0K38 (10%,53%,0%,38%) (0.10/0.53/0.00/0.38)
8E | 4A | 9D | |
---|---|---|---|
RGB | 142 | 74 | 157 |
HSL | 289° | 35.93% | 45.29% |
HSB/HSV | 289° | 52.87% | 61.57% |
CMYK | 9.55% | 52.87% | 0.00% |
38.43% |
HEX | 8E | 4A | 9D |
Decimal | 142 | 74 | 157 |
Binary | 10001110 | 1001010 | 10011101 |
Octal | 216 | 112 | 235 |
Examples of css and html codes for elements with #8E4A9D color. Also use rgb(142,74,157) instead hex code.
.myTextColor { color: #8E4A9D; }
<p style="color:#8E4A9D">This sample text font color is #8E4A9D.</p>
This text font color is #8E4A9D.
.myBgColor { background-color: #8E4A9D; }
<div style="background-color:#8E4A9D">Inner text</div>
This div background color is #8E4A9D.
.myBorderColor { border: 1px solid #8E4A9D; }
<div style="border:3px solid #8E4A9D">Div</div>
This div border color is #8E4A9D.
.myOpacity80 { color: #8E4A9D; opacity: 0.8; }
<p style="color:#8E4A9D;opacity:0.8;">80%</p>
Text with #8E4A9D color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #8E4A9D;}
<p style="text-shadow: 3px 3px 1px #8E4A9D">Text here.</p>
This text has shadow with #8E4A9D color.
.textShadow {text-shadow: 3px 3px 1px #8E4A9D, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #8E4A9D, 5px 5px 20px red">Text here.</p>
This text has shadow with #8E4A9D primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#8E4A9D, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#8E4A9D, Direction=45, Strength=4)">Text</p>
This text has shadow with #8E4A9D and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #8E4A9D; -webkit-box-shadow: 1px 1px 3px 2px #8E4A9D; box-shadow: 1px 1px 3px 2px #8E4A9D; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #8E4A9D; -webkit-box-shadow: 1px 1px 3px 2px #8E4A9D; box-shadow:1px 1px 3px 2px #8E4A9D;">
Div content here</div>
This text has color #8E4A9D on black background.
This text has color #8E4A9D on white background.
This text has black color on #8E4A9D background.
This text has white color on #8E4A9D background.