HEX: #504C99
RGB: (80,76,153)
#504C99 contains mainly blue color. Web safe color of #504C99 is #663399 (or #639).
#504C99 color RGB value is (80,76,153).
RGB: (80,76,153) (31%,30%,60%)
R 80 of 255 = 31%
G 76 of 255 = 30%
B 153 of 255 = 60%
R + G + B ~ 40%. #504C99 is middle color (not dark and not light).
R + G + B =
80 + 76 + 153 = 309 (100%)
R 80 of 309 ~ 25.89%
G 76 of 309 ~ 24.6%
B 153 of 309 ~ 49.51%
#504C99 color CMYK value is (48,50,0,40).
CMYK: (48,50,0,40) C48M50Y0K40 (48%,50%,0%,40%) (0.48/0.50/0.00/0.40)
50 | 4C | 99 | |
---|---|---|---|
RGB | 80 | 76 | 153 |
HSL | 243° | 33.62% | 44.90% |
HSB/HSV | 243° | 50.33% | 60.00% |
CMYK | 47.71% | 50.33% | 0.00% |
40.00% |
HEX | 50 | 4C | 99 |
Decimal | 80 | 76 | 153 |
Binary | 1010000 | 1001100 | 10011001 |
Octal | 120 | 114 | 231 |
Examples of css and html codes for elements with #504C99 color. Also use rgb(80,76,153) instead hex code.
.myTextColor { color: #504C99; }
<p style="color:#504C99">This sample text font color is #504C99.</p>
This text font color is #504C99.
.myBgColor { background-color: #504C99; }
<div style="background-color:#504C99">Inner text</div>
This div background color is #504C99.
.myBorderColor { border: 1px solid #504C99; }
<div style="border:3px solid #504C99">Div</div>
This div border color is #504C99.
.myOpacity80 { color: #504C99; opacity: 0.8; }
<p style="color:#504C99;opacity:0.8;">80%</p>
Text with #504C99 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #504C99;}
<p style="text-shadow: 3px 3px 1px #504C99">Text here.</p>
This text has shadow with #504C99 color.
.textShadow {text-shadow: 3px 3px 1px #504C99, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #504C99, 5px 5px 20px red">Text here.</p>
This text has shadow with #504C99 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#504C99, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#504C99, Direction=45, Strength=4)">Text</p>
This text has shadow with #504C99 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #504C99; -webkit-box-shadow: 1px 1px 3px 2px #504C99; box-shadow: 1px 1px 3px 2px #504C99; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #504C99; -webkit-box-shadow: 1px 1px 3px 2px #504C99; box-shadow:1px 1px 3px 2px #504C99;">
Div content here</div>
This text has color #504C99 on black background.
This text has color #504C99 on white background.
This text has black color on #504C99 background.
This text has white color on #504C99 background.