HEX: #502188
RGB: (80,33,136)
#502188 contains mainly red and blue colors. Web safe color of #502188 is #663399 (or #639).
#502188 color RGB value is (80,33,136).
RGB: (80,33,136) (31%,13%,53%)
R 80 of 255 = 31%
G 33 of 255 = 13%
B 136 of 255 = 53%
R + G + B ~ 32%. #502188 is quite dark color.
R + G + B =
80 + 33 + 136 = 249 (100%)
R 80 of 249 ~ 32.13%
G 33 of 249 ~ 13.25%
B 136 of 249 ~ 54.62%
#502188 color CMYK value is (41,76,0,47).
CMYK: (41,76,0,47) C41M76Y0K47 (41%,76%,0%,47%) (0.41/0.76/0.00/0.47)
50 | 21 | 88 | |
---|---|---|---|
RGB | 80 | 33 | 136 |
HSL | 267° | 60.95% | 33.14% |
HSB/HSV | 267° | 75.74% | 53.33% |
CMYK | 41.18% | 75.74% | 0.00% |
46.67% |
HEX | 50 | 21 | 88 |
Decimal | 80 | 33 | 136 |
Binary | 1010000 | 100001 | 10001000 |
Octal | 120 | 41 | 210 |
Examples of css and html codes for elements with #502188 color. Also use rgb(80,33,136) instead hex code.
.myTextColor { color: #502188; }
<p style="color:#502188">This sample text font color is #502188.</p>
This text font color is #502188.
.myBgColor { background-color: #502188; }
<div style="background-color:#502188">Inner text</div>
This div background color is #502188.
.myBorderColor { border: 1px solid #502188; }
<div style="border:3px solid #502188">Div</div>
This div border color is #502188.
.myOpacity80 { color: #502188; opacity: 0.8; }
<p style="color:#502188;opacity:0.8;">80%</p>
Text with #502188 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #502188;}
<p style="text-shadow: 3px 3px 1px #502188">Text here.</p>
This text has shadow with #502188 color.
.textShadow {text-shadow: 3px 3px 1px #502188, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #502188, 5px 5px 20px red">Text here.</p>
This text has shadow with #502188 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#502188, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#502188, Direction=45, Strength=4)">Text</p>
This text has shadow with #502188 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #502188; -webkit-box-shadow: 1px 1px 3px 2px #502188; box-shadow: 1px 1px 3px 2px #502188; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #502188; -webkit-box-shadow: 1px 1px 3px 2px #502188; box-shadow:1px 1px 3px 2px #502188;">
Div content here</div>
This text has color #502188 on black background.
This text has color #502188 on white background.
This text has black color on #502188 background.
This text has white color on #502188 background.