HEX: #504A76
RGB: (80,74,118)
#504A76 contains red, green and blue colors in about the same proportion. Web safe color of #504A76 is #663366 (or #636).
#504A76 color RGB value is (80,74,118).
RGB: (80,74,118) (31%,29%,46%)
R 80 of 255 = 31%
G 74 of 255 = 29%
B 118 of 255 = 46%
R + G + B ~ 35%. #504A76 is quite dark color.
R + G + B =
80 + 74 + 118 = 272 (100%)
R 80 of 272 ~ 29.41%
G 74 of 272 ~ 27.21%
B 118 of 272 ~ 43.38%
#504A76 color CMYK value is (32,37,0,54).
CMYK: (32,37,0,54) C32M37Y0K54 (32%,37%,0%,54%) (0.32/0.37/0.00/0.54)
50 | 4A | 76 | |
---|---|---|---|
RGB | 80 | 74 | 118 |
HSL | 248° | 22.92% | 37.65% |
HSB/HSV | 248° | 37.29% | 46.27% |
CMYK | 32.20% | 37.29% | 0.00% |
53.73% |
HEX | 50 | 4A | 76 |
Decimal | 80 | 74 | 118 |
Binary | 1010000 | 1001010 | 1110110 |
Octal | 120 | 112 | 166 |
Examples of css and html codes for elements with #504A76 color. Also use rgb(80,74,118) instead hex code.
.myTextColor { color: #504A76; }
<p style="color:#504A76">This sample text font color is #504A76.</p>
This text font color is #504A76.
.myBgColor { background-color: #504A76; }
<div style="background-color:#504A76">Inner text</div>
This div background color is #504A76.
.myBorderColor { border: 1px solid #504A76; }
<div style="border:3px solid #504A76">Div</div>
This div border color is #504A76.
.myOpacity80 { color: #504A76; opacity: 0.8; }
<p style="color:#504A76;opacity:0.8;">80%</p>
Text with #504A76 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #504A76;}
<p style="text-shadow: 3px 3px 1px #504A76">Text here.</p>
This text has shadow with #504A76 color.
.textShadow {text-shadow: 3px 3px 1px #504A76, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #504A76, 5px 5px 20px red">Text here.</p>
This text has shadow with #504A76 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#504A76, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#504A76, Direction=45, Strength=4)">Text</p>
This text has shadow with #504A76 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #504A76; -webkit-box-shadow: 1px 1px 3px 2px #504A76; box-shadow: 1px 1px 3px 2px #504A76; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #504A76; -webkit-box-shadow: 1px 1px 3px 2px #504A76; box-shadow:1px 1px 3px 2px #504A76;">
Div content here</div>
This text has color #504A76 on black background.
This text has color #504A76 on white background.
This text has black color on #504A76 background.
This text has white color on #504A76 background.