HEX: #F20F31
RGB: (242,15,49)
#F20F31 contains mainly red color. Web safe color of #F20F31 is #FF0033 (or #F03).
#F20F31 color RGB value is (242,15,49).
RGB: (242,15,49) (95%,6%,19%)
R 242 of 255 = 95%
G 15 of 255 = 6%
B 49 of 255 = 19%
R + G + B ~ 40%. #F20F31 is middle color (not dark and not light).
R + G + B =
242 + 15 + 49 = 306 (100%)
R 242 of 306 ~ 79.08%
G 15 of 306 ~ 4.9%
B 49 of 306 ~ 16.01%
#F20F31 color CMYK value is (0,94,80,5).
CMYK: (0,94,80,5) C0M94Y80K5 (0%,94%,80%,5%) (0.00/0.94/0.80/0.05)
F2 | 0F | 31 | |
---|---|---|---|
RGB | 242 | 15 | 49 |
HSL | 351° | 89.72% | 50.39% |
HSB/HSV | 351° | 93.80% | 94.90% |
CMYK | 0.00% | 93.80% | 79.75% |
5.10% |
HEX | F2 | 0F | 31 |
Decimal | 242 | 15 | 49 |
Binary | 11110010 | 1111 | 110001 |
Octal | 362 | 17 | 61 |
Examples of css and html codes for elements with #F20F31 color. Also use rgb(242,15,49) instead hex code.
.myTextColor { color: #F20F31; }
<p style="color:#F20F31">This sample text font color is #F20F31.</p>
This text font color is #F20F31.
.myBgColor { background-color: #F20F31; }
<div style="background-color:#F20F31">Inner text</div>
This div background color is #F20F31.
.myBorderColor { border: 1px solid #F20F31; }
<div style="border:3px solid #F20F31">Div</div>
This div border color is #F20F31.
.myOpacity80 { color: #F20F31; opacity: 0.8; }
<p style="color:#F20F31;opacity:0.8;">80%</p>
Text with #F20F31 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #F20F31;}
<p style="text-shadow: 3px 3px 1px #F20F31">Text here.</p>
This text has shadow with #F20F31 color.
.textShadow {text-shadow: 3px 3px 1px #F20F31, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #F20F31, 5px 5px 20px red">Text here.</p>
This text has shadow with #F20F31 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#F20F31, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#F20F31, Direction=45, Strength=4)">Text</p>
This text has shadow with #F20F31 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #F20F31; -webkit-box-shadow: 1px 1px 3px 2px #F20F31; box-shadow: 1px 1px 3px 2px #F20F31; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #F20F31; -webkit-box-shadow: 1px 1px 3px 2px #F20F31; box-shadow:1px 1px 3px 2px #F20F31;">
Div content here</div>
This text has color #F20F31 on black background.
This text has color #F20F31 on white background.
This text has black color on #F20F31 background.
This text has white color on #F20F31 background.