HEX: #F0C018
RGB: (240,192,24)
#F0C018 contains mainly red and green colors. Web safe color of #F0C018 is #FFCC00 (or #FC0).
#F0C018 color RGB value is (240,192,24).
RGB: (240,192,24) (94%,75%,9%)
R 240 of 255 = 94%
G 192 of 255 = 75%
B 24 of 255 = 9%
R + G + B ~ 59%. #F0C018 is middle color (not dark and not light).
R + G + B =
240 + 192 + 24 = 456 (100%)
R 240 of 456 ~ 52.63%
G 192 of 456 ~ 42.11%
B 24 of 456 ~ 5.26%
#F0C018 color CMYK value is (0,20,90,6).
CMYK: (0,20,90,6) C0M20Y90K6 (0%,20%,90%,6%) (0.00/0.20/0.90/0.06)
F0 | C0 | 18 | |
---|---|---|---|
RGB | 240 | 192 | 24 |
HSL | 47° | 87.80% | 51.76% |
HSB/HSV | 47° | 90.00% | 94.12% |
CMYK | 0.00% | 20.00% | 90.00% |
5.88% |
HEX | F0 | C0 | 18 |
Decimal | 240 | 192 | 24 |
Binary | 11110000 | 11000000 | 11000 |
Octal | 360 | 300 | 30 |
Examples of css and html codes for elements with #F0C018 color. Also use rgb(240,192,24) instead hex code.
.myTextColor { color: #F0C018; }
<p style="color:#F0C018">This sample text font color is #F0C018.</p>
This text font color is #F0C018.
.myBgColor { background-color: #F0C018; }
<div style="background-color:#F0C018">Inner text</div>
This div background color is #F0C018.
.myBorderColor { border: 1px solid #F0C018; }
<div style="border:3px solid #F0C018">Div</div>
This div border color is #F0C018.
.myOpacity80 { color: #F0C018; opacity: 0.8; }
<p style="color:#F0C018;opacity:0.8;">80%</p>
Text with #F0C018 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #F0C018;}
<p style="text-shadow: 3px 3px 1px #F0C018">Text here.</p>
This text has shadow with #F0C018 color.
.textShadow {text-shadow: 3px 3px 1px #F0C018, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #F0C018, 5px 5px 20px red">Text here.</p>
This text has shadow with #F0C018 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#F0C018, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#F0C018, Direction=45, Strength=4)">Text</p>
This text has shadow with #F0C018 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #F0C018; -webkit-box-shadow: 1px 1px 3px 2px #F0C018; box-shadow: 1px 1px 3px 2px #F0C018; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #F0C018; -webkit-box-shadow: 1px 1px 3px 2px #F0C018; box-shadow:1px 1px 3px 2px #F0C018;">
Div content here</div>
This text has color #F0C018 on black background.
This text has color #F0C018 on white background.
This text has black color on #F0C018 background.
This text has white color on #F0C018 background.