HEX: #840478
RGB: (132,4,120)
#840478 contains mainly red and blue colors. Web safe color of #840478 is #990066 (or #906).
#840478 color RGB value is (132,4,120).
RGB: (132,4,120) (52%,2%,47%)
R 132 of 255 = 52%
G 4 of 255 = 2%
B 120 of 255 = 47%
R + G + B ~ 34%. #840478 is quite dark color.
R + G + B =
132 + 4 + 120 = 256 (100%)
R 132 of 256 ~ 51.56%
G 4 of 256 ~ 1.56%
B 120 of 256 ~ 46.88%
#840478 color CMYK value is (0,97,9,48).
CMYK: (0,97,9,48) C0M97Y9K48 (0%,97%,9%,48%) (0.00/0.97/0.09/0.48)
84 | 04 | 78 | |
---|---|---|---|
RGB | 132 | 4 | 120 |
HSL | 306° | 94.12% | 26.67% |
HSB/HSV | 306° | 96.97% | 51.76% |
CMYK | 0.00% | 96.97% | 9.09% |
48.24% |
HEX | 84 | 04 | 78 |
Decimal | 132 | 4 | 120 |
Binary | 10000100 | 100 | 1111000 |
Octal | 204 | 4 | 170 |
Examples of css and html codes for elements with #840478 color. Also use rgb(132,4,120) instead hex code.
.myTextColor { color: #840478; }
<p style="color:#840478">This sample text font color is #840478.</p>
This text font color is #840478.
.myBgColor { background-color: #840478; }
<div style="background-color:#840478">Inner text</div>
This div background color is #840478.
.myBorderColor { border: 1px solid #840478; }
<div style="border:3px solid #840478">Div</div>
This div border color is #840478.
.myOpacity80 { color: #840478; opacity: 0.8; }
<p style="color:#840478;opacity:0.8;">80%</p>
Text with #840478 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #840478;}
<p style="text-shadow: 3px 3px 1px #840478">Text here.</p>
This text has shadow with #840478 color.
.textShadow {text-shadow: 3px 3px 1px #840478, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #840478, 5px 5px 20px red">Text here.</p>
This text has shadow with #840478 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#840478, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#840478, Direction=45, Strength=4)">Text</p>
This text has shadow with #840478 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #840478; -webkit-box-shadow: 1px 1px 3px 2px #840478; box-shadow: 1px 1px 3px 2px #840478; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #840478; -webkit-box-shadow: 1px 1px 3px 2px #840478; box-shadow:1px 1px 3px 2px #840478;">
Div content here</div>
This text has color #840478 on black background.
This text has color #840478 on white background.
This text has black color on #840478 background.
This text has white color on #840478 background.