HEX: #7E28AB
RGB: (126,40,171)
#7E28AB contains mainly red and blue colors. Web safe color of #7E28AB is #663399 (or #639).
#7E28AB color RGB value is (126,40,171).
RGB: (126,40,171) (49%,16%,67%)
R 126 of 255 = 49%
G 40 of 255 = 16%
B 171 of 255 = 67%
R + G + B ~ 44%. #7E28AB is middle color (not dark and not light).
R + G + B =
126 + 40 + 171 = 337 (100%)
R 126 of 337 ~ 37.39%
G 40 of 337 ~ 11.87%
B 171 of 337 ~ 50.74%
#7E28AB color CMYK value is (26,77,0,33).
CMYK: (26,77,0,33) C26M77Y0K33 (26%,77%,0%,33%) (0.26/0.77/0.00/0.33)
7E | 28 | AB | |
---|---|---|---|
RGB | 126 | 40 | 171 |
HSL | 279° | 62.09% | 41.37% |
HSB/HSV | 279° | 76.61% | 67.06% |
CMYK | 26.32% | 76.61% | 0.00% |
32.94% |
HEX | 7E | 28 | AB |
Decimal | 126 | 40 | 171 |
Binary | 1111110 | 101000 | 10101011 |
Octal | 176 | 50 | 253 |
Examples of css and html codes for elements with #7E28AB color. Also use rgb(126,40,171) instead hex code.
.myTextColor { color: #7E28AB; }
<p style="color:#7E28AB">This sample text font color is #7E28AB.</p>
This text font color is #7E28AB.
.myBgColor { background-color: #7E28AB; }
<div style="background-color:#7E28AB">Inner text</div>
This div background color is #7E28AB.
.myBorderColor { border: 1px solid #7E28AB; }
<div style="border:3px solid #7E28AB">Div</div>
This div border color is #7E28AB.
.myOpacity80 { color: #7E28AB; opacity: 0.8; }
<p style="color:#7E28AB;opacity:0.8;">80%</p>
Text with #7E28AB color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #7E28AB;}
<p style="text-shadow: 3px 3px 1px #7E28AB">Text here.</p>
This text has shadow with #7E28AB color.
.textShadow {text-shadow: 3px 3px 1px #7E28AB, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #7E28AB, 5px 5px 20px red">Text here.</p>
This text has shadow with #7E28AB primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#7E28AB, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#7E28AB, Direction=45, Strength=4)">Text</p>
This text has shadow with #7E28AB and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #7E28AB; -webkit-box-shadow: 1px 1px 3px 2px #7E28AB; box-shadow: 1px 1px 3px 2px #7E28AB; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #7E28AB; -webkit-box-shadow: 1px 1px 3px 2px #7E28AB; box-shadow:1px 1px 3px 2px #7E28AB;">
Div content here</div>
This text has color #7E28AB on black background.
This text has color #7E28AB on white background.
This text has black color on #7E28AB background.
This text has white color on #7E28AB background.