HEX: #4D125E
RGB: (77,18,94)
#4D125E contains mainly red and blue colors. Web safe color of #4D125E is #330066 (or #306).
#4D125E color RGB value is (77,18,94).
RGB: (77,18,94) (30%,7%,37%)
R 77 of 255 = 30%
G 18 of 255 = 7%
B 94 of 255 = 37%
R + G + B ~ 25%. #4D125E is quite dark color.
R + G + B =
77 + 18 + 94 = 189 (100%)
R 77 of 189 ~ 40.74%
G 18 of 189 ~ 9.52%
B 94 of 189 ~ 49.74%
#4D125E color CMYK value is (18,81,0,63).
CMYK: (18,81,0,63) C18M81Y0K63 (18%,81%,0%,63%) (0.18/0.81/0.00/0.63)
4D | 12 | 5E | |
---|---|---|---|
RGB | 77 | 18 | 94 |
HSL | 287° | 67.86% | 21.96% |
HSB/HSV | 287° | 80.85% | 36.86% |
CMYK | 18.09% | 80.85% | 0.00% |
63.14% |
HEX | 4D | 12 | 5E |
Decimal | 77 | 18 | 94 |
Binary | 1001101 | 10010 | 1011110 |
Octal | 115 | 22 | 136 |
Examples of css and html codes for elements with #4D125E color. Also use rgb(77,18,94) instead hex code.
.myTextColor { color: #4D125E; }
<p style="color:#4D125E">This sample text font color is #4D125E.</p>
This text font color is #4D125E.
.myBgColor { background-color: #4D125E; }
<div style="background-color:#4D125E">Inner text</div>
This div background color is #4D125E.
.myBorderColor { border: 1px solid #4D125E; }
<div style="border:3px solid #4D125E">Div</div>
This div border color is #4D125E.
.myOpacity80 { color: #4D125E; opacity: 0.8; }
<p style="color:#4D125E;opacity:0.8;">80%</p>
Text with #4D125E color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #4D125E;}
<p style="text-shadow: 3px 3px 1px #4D125E">Text here.</p>
This text has shadow with #4D125E color.
.textShadow {text-shadow: 3px 3px 1px #4D125E, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #4D125E, 5px 5px 20px red">Text here.</p>
This text has shadow with #4D125E primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#4D125E, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#4D125E, Direction=45, Strength=4)">Text</p>
This text has shadow with #4D125E and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #4D125E; -webkit-box-shadow: 1px 1px 3px 2px #4D125E; box-shadow: 1px 1px 3px 2px #4D125E; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #4D125E; -webkit-box-shadow: 1px 1px 3px 2px #4D125E; box-shadow:1px 1px 3px 2px #4D125E;">
Div content here</div>
This text has color #4D125E on black background.
This text has color #4D125E on white background.
This text has black color on #4D125E background.
This text has white color on #4D125E background.