HEX: #842842
RGB: (132,40,66)
#842842 contains mainly red color. Web safe color of #842842 is #993333 (or #933).
#842842 color RGB value is (132,40,66).
RGB: (132,40,66) (52%,16%,26%)
R 132 of 255 = 52%
G 40 of 255 = 16%
B 66 of 255 = 26%
R + G + B ~ 31%. #842842 is quite dark color.
R + G + B =
132 + 40 + 66 = 238 (100%)
R 132 of 238 ~ 55.46%
G 40 of 238 ~ 16.81%
B 66 of 238 ~ 27.73%
#842842 color CMYK value is (0,70,50,48).
CMYK: (0,70,50,48) C0M70Y50K48 (0%,70%,50%,48%) (0.00/0.70/0.50/0.48)
84 | 28 | 42 | |
---|---|---|---|
RGB | 132 | 40 | 66 |
HSL | 343° | 53.49% | 33.73% |
HSB/HSV | 343° | 69.70% | 51.76% |
CMYK | 0.00% | 69.70% | 50.00% |
48.24% |
HEX | 84 | 28 | 42 |
Decimal | 132 | 40 | 66 |
Binary | 10000100 | 101000 | 1000010 |
Octal | 204 | 50 | 102 |
Examples of css and html codes for elements with #842842 color. Also use rgb(132,40,66) instead hex code.
.myTextColor { color: #842842; }
<p style="color:#842842">This sample text font color is #842842.</p>
This text font color is #842842.
.myBgColor { background-color: #842842; }
<div style="background-color:#842842">Inner text</div>
This div background color is #842842.
.myBorderColor { border: 1px solid #842842; }
<div style="border:3px solid #842842">Div</div>
This div border color is #842842.
.myOpacity80 { color: #842842; opacity: 0.8; }
<p style="color:#842842;opacity:0.8;">80%</p>
Text with #842842 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #842842;}
<p style="text-shadow: 3px 3px 1px #842842">Text here.</p>
This text has shadow with #842842 color.
.textShadow {text-shadow: 3px 3px 1px #842842, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #842842, 5px 5px 20px red">Text here.</p>
This text has shadow with #842842 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#842842, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#842842, Direction=45, Strength=4)">Text</p>
This text has shadow with #842842 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #842842; -webkit-box-shadow: 1px 1px 3px 2px #842842; box-shadow: 1px 1px 3px 2px #842842; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #842842; -webkit-box-shadow: 1px 1px 3px 2px #842842; box-shadow:1px 1px 3px 2px #842842;">
Div content here</div>
This text has color #842842 on black background.
This text has color #842842 on white background.
This text has black color on #842842 background.
This text has white color on #842842 background.