HEX: #D4304E
RGB: (212,48,78)
#D4304E contains mainly red color. Web safe color of #D4304E is #CC3366 (or #C36).
#D4304E color RGB value is (212,48,78).
RGB: (212,48,78) (83%,19%,31%)
R 212 of 255 = 83%
G 48 of 255 = 19%
B 78 of 255 = 31%
R + G + B ~ 44%. #D4304E is middle color (not dark and not light).
R + G + B =
212 + 48 + 78 = 338 (100%)
R 212 of 338 ~ 62.72%
G 48 of 338 ~ 14.2%
B 78 of 338 ~ 23.08%
#D4304E color CMYK value is (0,77,63,17).
CMYK: (0,77,63,17) C0M77Y63K17 (0%,77%,63%,17%) (0.00/0.77/0.63/0.17)
D4 | 30 | 4E | |
---|---|---|---|
RGB | 212 | 48 | 78 |
HSL | 349° | 65.60% | 50.98% |
HSB/HSV | 349° | 77.36% | 83.14% |
CMYK | 0.00% | 77.36% | 63.21% |
16.86% |
HEX | D4 | 30 | 4E |
Decimal | 212 | 48 | 78 |
Binary | 11010100 | 110000 | 1001110 |
Octal | 324 | 60 | 116 |
Examples of css and html codes for elements with #D4304E color. Also use rgb(212,48,78) instead hex code.
.myTextColor { color: #D4304E; }
<p style="color:#D4304E">This sample text font color is #D4304E.</p>
This text font color is #D4304E.
.myBgColor { background-color: #D4304E; }
<div style="background-color:#D4304E">Inner text</div>
This div background color is #D4304E.
.myBorderColor { border: 1px solid #D4304E; }
<div style="border:3px solid #D4304E">Div</div>
This div border color is #D4304E.
.myOpacity80 { color: #D4304E; opacity: 0.8; }
<p style="color:#D4304E;opacity:0.8;">80%</p>
Text with #D4304E color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #D4304E;}
<p style="text-shadow: 3px 3px 1px #D4304E">Text here.</p>
This text has shadow with #D4304E color.
.textShadow {text-shadow: 3px 3px 1px #D4304E, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #D4304E, 5px 5px 20px red">Text here.</p>
This text has shadow with #D4304E primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#D4304E, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#D4304E, Direction=45, Strength=4)">Text</p>
This text has shadow with #D4304E and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #D4304E; -webkit-box-shadow: 1px 1px 3px 2px #D4304E; box-shadow: 1px 1px 3px 2px #D4304E; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #D4304E; -webkit-box-shadow: 1px 1px 3px 2px #D4304E; box-shadow:1px 1px 3px 2px #D4304E;">
Div content here</div>
This text has color #D4304E on black background.
This text has color #D4304E on white background.
This text has black color on #D4304E background.
This text has white color on #D4304E background.