HEX: #502779
RGB: (80,39,121)
#502779 contains mainly red and blue colors. Web safe color of #502779 is #663366 (or #636).
#502779 color RGB value is (80,39,121).
RGB: (80,39,121) (31%,15%,47%)
R 80 of 255 = 31%
G 39 of 255 = 15%
B 121 of 255 = 47%
R + G + B ~ 31%. #502779 is quite dark color.
R + G + B =
80 + 39 + 121 = 240 (100%)
R 80 of 240 ~ 33.33%
G 39 of 240 ~ 16.25%
B 121 of 240 ~ 50.42%
#502779 color CMYK value is (34,68,0,53).
CMYK: (34,68,0,53) C34M68Y0K53 (34%,68%,0%,53%) (0.34/0.68/0.00/0.53)
50 | 27 | 79 | |
---|---|---|---|
RGB | 80 | 39 | 121 |
HSL | 270° | 51.25% | 31.37% |
HSB/HSV | 270° | 67.77% | 47.45% |
CMYK | 33.88% | 67.77% | 0.00% |
52.55% |
HEX | 50 | 27 | 79 |
Decimal | 80 | 39 | 121 |
Binary | 1010000 | 100111 | 1111001 |
Octal | 120 | 47 | 171 |
Examples of css and html codes for elements with #502779 color. Also use rgb(80,39,121) instead hex code.
.myTextColor { color: #502779; }
<p style="color:#502779">This sample text font color is #502779.</p>
This text font color is #502779.
.myBgColor { background-color: #502779; }
<div style="background-color:#502779">Inner text</div>
This div background color is #502779.
.myBorderColor { border: 1px solid #502779; }
<div style="border:3px solid #502779">Div</div>
This div border color is #502779.
.myOpacity80 { color: #502779; opacity: 0.8; }
<p style="color:#502779;opacity:0.8;">80%</p>
Text with #502779 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #502779;}
<p style="text-shadow: 3px 3px 1px #502779">Text here.</p>
This text has shadow with #502779 color.
.textShadow {text-shadow: 3px 3px 1px #502779, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #502779, 5px 5px 20px red">Text here.</p>
This text has shadow with #502779 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#502779, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#502779, Direction=45, Strength=4)">Text</p>
This text has shadow with #502779 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #502779; -webkit-box-shadow: 1px 1px 3px 2px #502779; box-shadow: 1px 1px 3px 2px #502779; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #502779; -webkit-box-shadow: 1px 1px 3px 2px #502779; box-shadow:1px 1px 3px 2px #502779;">
Div content here</div>
This text has color #502779 on black background.
This text has color #502779 on white background.
This text has black color on #502779 background.
This text has white color on #502779 background.