HEX: #420940
RGB: (66,9,64)
#420940 contains red, green and blue colors in about the same proportion. Web safe color of #420940 is #330033 (or #303).
#420940 color RGB value is (66,9,64).
RGB: (66,9,64) (26%,4%,25%)
R 66 of 255 = 26%
G 9 of 255 = 4%
B 64 of 255 = 25%
R + G + B ~ 18%. #420940 is dark color.
R + G + B =
66 + 9 + 64 = 139 (100%)
R 66 of 139 ~ 47.48%
G 9 of 139 ~ 6.47%
B 64 of 139 ~ 46.04%
#420940 color CMYK value is (0,86,3,74).
CMYK: (0,86,3,74) C0M86Y3K74 (0%,86%,3%,74%) (0.00/0.86/0.03/0.74)
42 | 09 | 40 | |
---|---|---|---|
RGB | 66 | 9 | 64 |
HSL | 302° | 76.00% | 14.71% |
HSB/HSV | 302° | 86.36% | 25.88% |
CMYK | 0.00% | 86.36% | 3.03% |
74.12% |
HEX | 42 | 09 | 40 |
Decimal | 66 | 9 | 64 |
Binary | 1000010 | 1001 | 1000000 |
Octal | 102 | 11 | 100 |
Examples of css and html codes for elements with #420940 color. Also use rgb(66,9,64) instead hex code.
.myTextColor { color: #420940; }
<p style="color:#420940">This sample text font color is #420940.</p>
This text font color is #420940.
.myBgColor { background-color: #420940; }
<div style="background-color:#420940">Inner text</div>
This div background color is #420940.
.myBorderColor { border: 1px solid #420940; }
<div style="border:3px solid #420940">Div</div>
This div border color is #420940.
.myOpacity80 { color: #420940; opacity: 0.8; }
<p style="color:#420940;opacity:0.8;">80%</p>
Text with #420940 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #420940;}
<p style="text-shadow: 3px 3px 1px #420940">Text here.</p>
This text has shadow with #420940 color.
.textShadow {text-shadow: 3px 3px 1px #420940, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #420940, 5px 5px 20px red">Text here.</p>
This text has shadow with #420940 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#420940, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#420940, Direction=45, Strength=4)">Text</p>
This text has shadow with #420940 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #420940; -webkit-box-shadow: 1px 1px 3px 2px #420940; box-shadow: 1px 1px 3px 2px #420940; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #420940; -webkit-box-shadow: 1px 1px 3px 2px #420940; box-shadow:1px 1px 3px 2px #420940;">
Div content here</div>
This text has color #420940 on black background.
This text has color #420940 on white background.
This text has black color on #420940 background.
This text has white color on #420940 background.