HEX: #4A6789
RGB: (74,103,137)
#4A6789 contains mainly green and blue colors. Web safe color of #4A6789 is #336699 (or #369).
#4A6789 color RGB value is (74,103,137).
RGB: (74,103,137) (29%,40%,54%)
R 74 of 255 = 29%
G 103 of 255 = 40%
B 137 of 255 = 54%
R + G + B ~ 41%. #4A6789 is middle color (not dark and not light).
R + G + B =
74 + 103 + 137 = 314 (100%)
R 74 of 314 ~ 23.57%
G 103 of 314 ~ 32.8%
B 137 of 314 ~ 43.63%
#4A6789 color CMYK value is (46,25,0,46).
CMYK: (46,25,0,46) C46M25Y0K46 (46%,25%,0%,46%) (0.46/0.25/0.00/0.46)
4A | 67 | 89 | |
---|---|---|---|
RGB | 74 | 103 | 137 |
HSL | 212° | 29.86% | 41.37% |
HSB/HSV | 212° | 45.99% | 53.73% |
CMYK | 45.99% | 24.82% | 0.00% |
46.27% |
HEX | 4A | 67 | 89 |
Decimal | 74 | 103 | 137 |
Binary | 1001010 | 1100111 | 10001001 |
Octal | 112 | 147 | 211 |
Examples of css and html codes for elements with #4A6789 color. Also use rgb(74,103,137) instead hex code.
.myTextColor { color: #4A6789; }
<p style="color:#4A6789">This sample text font color is #4A6789.</p>
This text font color is #4A6789.
.myBgColor { background-color: #4A6789; }
<div style="background-color:#4A6789">Inner text</div>
This div background color is #4A6789.
.myBorderColor { border: 1px solid #4A6789; }
<div style="border:3px solid #4A6789">Div</div>
This div border color is #4A6789.
.myOpacity80 { color: #4A6789; opacity: 0.8; }
<p style="color:#4A6789;opacity:0.8;">80%</p>
Text with #4A6789 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #4A6789;}
<p style="text-shadow: 3px 3px 1px #4A6789">Text here.</p>
This text has shadow with #4A6789 color.
.textShadow {text-shadow: 3px 3px 1px #4A6789, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #4A6789, 5px 5px 20px red">Text here.</p>
This text has shadow with #4A6789 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#4A6789, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#4A6789, Direction=45, Strength=4)">Text</p>
This text has shadow with #4A6789 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #4A6789; -webkit-box-shadow: 1px 1px 3px 2px #4A6789; box-shadow: 1px 1px 3px 2px #4A6789; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #4A6789; -webkit-box-shadow: 1px 1px 3px 2px #4A6789; box-shadow:1px 1px 3px 2px #4A6789;">
Div content here</div>
This text has color #4A6789 on black background.
This text has color #4A6789 on white background.
This text has black color on #4A6789 background.
This text has white color on #4A6789 background.