HEX: #504885
RGB: (80,72,133)
#504885 contains mainly red and blue colors. Web safe color of #504885 is #663399 (or #639).
#504885 color RGB value is (80,72,133).
RGB: (80,72,133) (31%,28%,52%)
R 80 of 255 = 31%
G 72 of 255 = 28%
B 133 of 255 = 52%
R + G + B ~ 37%. #504885 is quite dark color.
R + G + B =
80 + 72 + 133 = 285 (100%)
R 80 of 285 ~ 28.07%
G 72 of 285 ~ 25.26%
B 133 of 285 ~ 46.67%
#504885 color CMYK value is (40,46,0,48).
CMYK: (40,46,0,48) C40M46Y0K48 (40%,46%,0%,48%) (0.40/0.46/0.00/0.48)
50 | 48 | 85 | |
---|---|---|---|
RGB | 80 | 72 | 133 |
HSL | 248° | 29.76% | 40.20% |
HSB/HSV | 248° | 45.86% | 52.16% |
CMYK | 39.85% | 45.86% | 0.00% |
47.84% |
HEX | 50 | 48 | 85 |
Decimal | 80 | 72 | 133 |
Binary | 1010000 | 1001000 | 10000101 |
Octal | 120 | 110 | 205 |
Examples of css and html codes for elements with #504885 color. Also use rgb(80,72,133) instead hex code.
.myTextColor { color: #504885; }
<p style="color:#504885">This sample text font color is #504885.</p>
This text font color is #504885.
.myBgColor { background-color: #504885; }
<div style="background-color:#504885">Inner text</div>
This div background color is #504885.
.myBorderColor { border: 1px solid #504885; }
<div style="border:3px solid #504885">Div</div>
This div border color is #504885.
.myOpacity80 { color: #504885; opacity: 0.8; }
<p style="color:#504885;opacity:0.8;">80%</p>
Text with #504885 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #504885;}
<p style="text-shadow: 3px 3px 1px #504885">Text here.</p>
This text has shadow with #504885 color.
.textShadow {text-shadow: 3px 3px 1px #504885, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #504885, 5px 5px 20px red">Text here.</p>
This text has shadow with #504885 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#504885, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#504885, Direction=45, Strength=4)">Text</p>
This text has shadow with #504885 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #504885; -webkit-box-shadow: 1px 1px 3px 2px #504885; box-shadow: 1px 1px 3px 2px #504885; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #504885; -webkit-box-shadow: 1px 1px 3px 2px #504885; box-shadow:1px 1px 3px 2px #504885;">
Div content here</div>
This text has color #504885 on black background.
This text has color #504885 on white background.
This text has black color on #504885 background.
This text has white color on #504885 background.