HEX: #521B40
RGB: (82,27,64)
#521B40 contains red, green and blue colors in about the same proportion. Web safe color of #521B40 is #663333 (or #633).
#521B40 color RGB value is (82,27,64).
RGB: (82,27,64) (32%,11%,25%)
R 82 of 255 = 32%
G 27 of 255 = 11%
B 64 of 255 = 25%
R + G + B ~ 23%. #521B40 is dark color.
R + G + B =
82 + 27 + 64 = 173 (100%)
R 82 of 173 ~ 47.4%
G 27 of 173 ~ 15.61%
B 64 of 173 ~ 36.99%
#521B40 color CMYK value is (0,67,22,68).
CMYK: (0,67,22,68) C0M67Y22K68 (0%,67%,22%,68%) (0.00/0.67/0.22/0.68)
52 | 1B | 40 | |
---|---|---|---|
RGB | 82 | 27 | 64 |
HSL | 320° | 50.46% | 21.37% |
HSB/HSV | 320° | 67.07% | 32.16% |
CMYK | 0.00% | 67.07% | 21.95% |
67.84% |
HEX | 52 | 1B | 40 |
Decimal | 82 | 27 | 64 |
Binary | 1010010 | 11011 | 1000000 |
Octal | 122 | 33 | 100 |
Examples of css and html codes for elements with #521B40 color. Also use rgb(82,27,64) instead hex code.
.myTextColor { color: #521B40; }
<p style="color:#521B40">This sample text font color is #521B40.</p>
This text font color is #521B40.
.myBgColor { background-color: #521B40; }
<div style="background-color:#521B40">Inner text</div>
This div background color is #521B40.
.myBorderColor { border: 1px solid #521B40; }
<div style="border:3px solid #521B40">Div</div>
This div border color is #521B40.
.myOpacity80 { color: #521B40; opacity: 0.8; }
<p style="color:#521B40;opacity:0.8;">80%</p>
Text with #521B40 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #521B40;}
<p style="text-shadow: 3px 3px 1px #521B40">Text here.</p>
This text has shadow with #521B40 color.
.textShadow {text-shadow: 3px 3px 1px #521B40, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #521B40, 5px 5px 20px red">Text here.</p>
This text has shadow with #521B40 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#521B40, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#521B40, Direction=45, Strength=4)">Text</p>
This text has shadow with #521B40 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #521B40; -webkit-box-shadow: 1px 1px 3px 2px #521B40; box-shadow: 1px 1px 3px 2px #521B40; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #521B40; -webkit-box-shadow: 1px 1px 3px 2px #521B40; box-shadow:1px 1px 3px 2px #521B40;">
Div content here</div>
This text has color #521B40 on black background.
This text has color #521B40 on white background.
This text has black color on #521B40 background.
This text has white color on #521B40 background.