Hex color #f0e68c, RGB(240, 230, 140) - also known as khaki - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #f0e68c is a shade of yellow. In a RGB color space it is composed of 94.12% red, 90.2% green and 54.9% blue. In HSL notation it has 54° hue, 76.9% saturation and 74.5% lightness. The process color (CMYK) is combination of 0% cyan, 4.17% magenta, 41.67% yellow and 5.88% key (black). The closest short hexadecimal code of #f0e68c is #fe8.
Example CSS code:
.setFontColor { color: #f0e68c; }
.setBackgroundColor { background-color: #f0e68c; }
How to set font color?
<p style="color:#f0e68c">Font color is #f0e68c.</p>
Font color is #f0e68c.
Compromise in colors is grey.
- Edi Rama
How to set background color?
<div style="background-color:#f0e68c">Background color is #f0e68c.</div>
Background color is #f0e68c.
Every person has their own colour.
- Haruki Murakami, Colorless Tsukuru Tazaki and His Years of Pilgrimage