HEX: #7E508C
RGB: (126,80,140)
#7E508C contains mainly red and blue colors. Web safe color of #7E508C is #666699 (or #669).
#7E508C color RGB value is (126,80,140).
RGB: (126,80,140) (49%,31%,55%)
R 126 of 255 = 49%
G 80 of 255 = 31%
B 140 of 255 = 55%
R + G + B ~ 45%. #7E508C is middle color (not dark and not light).
R + G + B =
126 + 80 + 140 = 346 (100%)
R 126 of 346 ~ 36.42%
G 80 of 346 ~ 23.12%
B 140 of 346 ~ 40.46%
#7E508C color CMYK value is (10,43,0,45).
CMYK: (10,43,0,45) C10M43Y0K45 (10%,43%,0%,45%) (0.10/0.43/0.00/0.45)
7E | 50 | 8C | |
---|---|---|---|
RGB | 126 | 80 | 140 |
HSL | 286° | 27.27% | 43.14% |
HSB/HSV | 286° | 42.86% | 54.90% |
CMYK | 10.00% | 42.86% | 0.00% |
45.10% |
HEX | 7E | 50 | 8C |
Decimal | 126 | 80 | 140 |
Binary | 1111110 | 1010000 | 10001100 |
Octal | 176 | 120 | 214 |
Examples of css and html codes for elements with #7E508C color. Also use rgb(126,80,140) instead hex code.
.myTextColor { color: #7E508C; }
<p style="color:#7E508C">This sample text font color is #7E508C.</p>
This text font color is #7E508C.
.myBgColor { background-color: #7E508C; }
<div style="background-color:#7E508C">Inner text</div>
This div background color is #7E508C.
.myBorderColor { border: 1px solid #7E508C; }
<div style="border:3px solid #7E508C">Div</div>
This div border color is #7E508C.
.myOpacity80 { color: #7E508C; opacity: 0.8; }
<p style="color:#7E508C;opacity:0.8;">80%</p>
Text with #7E508C color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #7E508C;}
<p style="text-shadow: 3px 3px 1px #7E508C">Text here.</p>
This text has shadow with #7E508C color.
.textShadow {text-shadow: 3px 3px 1px #7E508C, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #7E508C, 5px 5px 20px red">Text here.</p>
This text has shadow with #7E508C primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#7E508C, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#7E508C, Direction=45, Strength=4)">Text</p>
This text has shadow with #7E508C and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #7E508C; -webkit-box-shadow: 1px 1px 3px 2px #7E508C; box-shadow: 1px 1px 3px 2px #7E508C; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #7E508C; -webkit-box-shadow: 1px 1px 3px 2px #7E508C; box-shadow:1px 1px 3px 2px #7E508C;">
Div content here</div>
This text has color #7E508C on black background.
This text has color #7E508C on white background.
This text has black color on #7E508C background.
This text has white color on #7E508C background.