HEX: #8E2D8D
RGB: (142,45,141)
#8E2D8D contains mainly red and blue colors. Web safe color of #8E2D8D is #993399 (or #939).
#8E2D8D color RGB value is (142,45,141).
RGB: (142,45,141) (56%,18%,55%)
R 142 of 255 = 56%
G 45 of 255 = 18%
B 141 of 255 = 55%
R + G + B ~ 43%. #8E2D8D is middle color (not dark and not light).
R + G + B =
142 + 45 + 141 = 328 (100%)
R 142 of 328 ~ 43.29%
G 45 of 328 ~ 13.72%
B 141 of 328 ~ 42.99%
#8E2D8D color CMYK value is (0,68,1,44).
CMYK: (0,68,1,44) C0M68Y1K44 (0%,68%,1%,44%) (0.00/0.68/0.01/0.44)
8E | 2D | 8D | |
---|---|---|---|
RGB | 142 | 45 | 141 |
HSL | 301° | 51.87% | 36.67% |
HSB/HSV | 301° | 68.31% | 55.69% |
CMYK | 0.00% | 68.31% | 0.70% |
44.31% |
HEX | 8E | 2D | 8D |
Decimal | 142 | 45 | 141 |
Binary | 10001110 | 101101 | 10001101 |
Octal | 216 | 55 | 215 |
Examples of css and html codes for elements with #8E2D8D color. Also use rgb(142,45,141) instead hex code.
.myTextColor { color: #8E2D8D; }
<p style="color:#8E2D8D">This sample text font color is #8E2D8D.</p>
This text font color is #8E2D8D.
.myBgColor { background-color: #8E2D8D; }
<div style="background-color:#8E2D8D">Inner text</div>
This div background color is #8E2D8D.
.myBorderColor { border: 1px solid #8E2D8D; }
<div style="border:3px solid #8E2D8D">Div</div>
This div border color is #8E2D8D.
.myOpacity80 { color: #8E2D8D; opacity: 0.8; }
<p style="color:#8E2D8D;opacity:0.8;">80%</p>
Text with #8E2D8D color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #8E2D8D;}
<p style="text-shadow: 3px 3px 1px #8E2D8D">Text here.</p>
This text has shadow with #8E2D8D color.
.textShadow {text-shadow: 3px 3px 1px #8E2D8D, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #8E2D8D, 5px 5px 20px red">Text here.</p>
This text has shadow with #8E2D8D primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#8E2D8D, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#8E2D8D, Direction=45, Strength=4)">Text</p>
This text has shadow with #8E2D8D and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #8E2D8D; -webkit-box-shadow: 1px 1px 3px 2px #8E2D8D; box-shadow: 1px 1px 3px 2px #8E2D8D; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #8E2D8D; -webkit-box-shadow: 1px 1px 3px 2px #8E2D8D; box-shadow:1px 1px 3px 2px #8E2D8D;">
Div content here</div>
This text has color #8E2D8D on black background.
This text has color #8E2D8D on white background.
This text has black color on #8E2D8D background.
This text has white color on #8E2D8D background.