Hex color #fff8dc, RGB(255, 248, 220) - also known as corn silk - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #fff8dc is a shade of yellow. In a RGB color space it is composed of 100% red, 97.25% green and 86.27% blue. In HSL notation it has 48° hue, 100% saturation and 93.1% lightness. The process color (CMYK) is combination of 0% cyan, 2.75% magenta, 13.73% yellow and 0% key (black). The closest short hexadecimal code of #fff8dc is #ffd.
Example CSS code:
.setFontColor { color: #fff8dc; }
.setBackgroundColor { background-color: #fff8dc; }
How to set font color?
<p style="color:#fff8dc">Font color is #fff8dc.</p>
Font color is #fff8dc.
Red was ruby, green was fluorescent, yellow was simply incandescent. Color was life. Color was everything.
Color, you see, was the universal sign of magic.
- Tahereh Mafi, Furthermore
How to set background color?
<div style="background-color:#fff8dc">Background color is #fff8dc.</div>
Background color is #fff8dc.
Every person has their own colour.
- Haruki Murakami, Colorless Tsukuru Tazaki and His Years of Pilgrimage