HEX: #FFF8DC
RGB: (255,248,220)
Color name is Cornsilk. #FFF8DC contains red, green and blue colors in about the same proportion. Web safe color of #FFF8DC is #FFFFCC (or #FFC).
#FFF8DC color RGB value is (255,248,220).
RGB: (255,248,220) (100%,97%,86%)
R 255 of 255 = 100%
G 248 of 255 = 97%
B 220 of 255 = 86%
R + G + B ~ 94%. #FFF8DC is light color.
R + G + B =
255 + 248 + 220 = 723 (100%)
R 255 of 723 ~ 35.27%
G 248 of 723 ~ 34.3%
B 220 of 723 ~ 30.43%
#FFF8DC color CMYK value is (0,3,14,0).
CMYK: (0,3,14,0) C0M3Y14K0 (0%,3%,14%,0%) (0.00/0.03/0.14/0.00)
FF | F8 | DC | |
---|---|---|---|
RGB | 255 | 248 | 220 |
HSL | 48° | 100.00% | 93.14% |
HSB/HSV | 48° | 13.73% | 100.00% |
CMYK | 0.00% | 2.75% | 13.73% |
0.00% |
HEX | FF | F8 | DC |
Decimal | 255 | 248 | 220 |
Binary | 11111111 | 11111000 | 11011100 |
Octal | 377 | 370 | 334 |
Examples of css and html codes for elements with #FFF8DC color. Also use rgb(255,248,220) instead hex code.
.myTextColor { color: #FFF8DC; }
<p style="color:#FFF8DC">This sample text font color is #FFF8DC.</p>
This text font color is #FFF8DC.
.myBgColor { background-color: #FFF8DC; }
<div style="background-color:#FFF8DC">Inner text</div>
This div background color is #FFF8DC.
.myBorderColor { border: 1px solid #FFF8DC; }
<div style="border:3px solid #FFF8DC">Div</div>
This div border color is #FFF8DC.
.myOpacity80 { color: #FFF8DC; opacity: 0.8; }
<p style="color:#FFF8DC;opacity:0.8;">80%</p>
Text with #FFF8DC color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #FFF8DC;}
<p style="text-shadow: 3px 3px 1px #FFF8DC">Text here.</p>
This text has shadow with #FFF8DC color.
.textShadow {text-shadow: 3px 3px 1px #FFF8DC, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #FFF8DC, 5px 5px 20px red">Text here.</p>
This text has shadow with #FFF8DC primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#FFF8DC, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#FFF8DC, Direction=45, Strength=4)">Text</p>
This text has shadow with #FFF8DC and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #FFF8DC; -webkit-box-shadow: 1px 1px 3px 2px #FFF8DC; box-shadow: 1px 1px 3px 2px #FFF8DC; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #FFF8DC; -webkit-box-shadow: 1px 1px 3px 2px #FFF8DC; box-shadow:1px 1px 3px 2px #FFF8DC;">
Div content here</div>
This text has color #FFF8DC on black background.
This text has color #FFF8DC on white background.
This text has black color on #FFF8DC background.
This text has white color on #FFF8DC background.