HEX: #F81504
RGB: (248,21,4)
#F81504 contains mainly red color. Web safe color of #F81504 is #FF0000 (or #F00).
#F81504 color RGB value is (248,21,4).
RGB: (248,21,4) (97%,8%,2%)
R 248 of 255 = 97%
G 21 of 255 = 8%
B 4 of 255 = 2%
R + G + B ~ 36%. #F81504 is quite dark color.
R + G + B =
248 + 21 + 4 = 273 (100%)
R 248 of 273 ~ 90.84%
G 21 of 273 ~ 7.69%
B 4 of 273 ~ 1.47%
#F81504 color CMYK value is (0,92,98,3).
CMYK: (0,92,98,3) C0M92Y98K3 (0%,92%,98%,3%) (0.00/0.92/0.98/0.03)
F8 | 15 | 04 | |
---|---|---|---|
RGB | 248 | 21 | 4 |
HSL | 4° | 96.83% | 49.41% |
HSB/HSV | 4° | 98.39% | 97.25% |
CMYK | 0.00% | 91.53% | 98.39% |
2.75% |
HEX | F8 | 15 | 04 |
Decimal | 248 | 21 | 4 |
Binary | 11111000 | 10101 | 100 |
Octal | 370 | 25 | 4 |
Examples of css and html codes for elements with #F81504 color. Also use rgb(248,21,4) instead hex code.
.myTextColor { color: #F81504; }
<p style="color:#F81504">This sample text font color is #F81504.</p>
This text font color is #F81504.
.myBgColor { background-color: #F81504; }
<div style="background-color:#F81504">Inner text</div>
This div background color is #F81504.
.myBorderColor { border: 1px solid #F81504; }
<div style="border:3px solid #F81504">Div</div>
This div border color is #F81504.
.myOpacity80 { color: #F81504; opacity: 0.8; }
<p style="color:#F81504;opacity:0.8;">80%</p>
Text with #F81504 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #F81504;}
<p style="text-shadow: 3px 3px 1px #F81504">Text here.</p>
This text has shadow with #F81504 color.
.textShadow {text-shadow: 3px 3px 1px #F81504, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #F81504, 5px 5px 20px red">Text here.</p>
This text has shadow with #F81504 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#F81504, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#F81504, Direction=45, Strength=4)">Text</p>
This text has shadow with #F81504 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #F81504; -webkit-box-shadow: 1px 1px 3px 2px #F81504; box-shadow: 1px 1px 3px 2px #F81504; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #F81504; -webkit-box-shadow: 1px 1px 3px 2px #F81504; box-shadow:1px 1px 3px 2px #F81504;">
Div content here</div>
This text has color #F81504 on black background.
This text has color #F81504 on white background.
This text has black color on #F81504 background.
This text has white color on #F81504 background.