Hex color #f0f5dc, RGB(240, 245, 220) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #f0f5dc is a shade of yellow. In a RGB color space it is composed of 94.12% red, 96.08% green and 86.27% blue. In HSL notation it has 72° hue, 55.6% saturation and 91.2% lightness. The process color (CMYK) is combination of 2.04% cyan, 0% magenta, 10.20% yellow and 3.92% key (black). The closest short hexadecimal code of #f0f5dc is #ffd.
Example CSS code:
.setFontColor { color: #f0f5dc; }
.setBackgroundColor { background-color: #f0f5dc; }
How to set font color?
<p style="color:#f0f5dc">Font color is #f0f5dc.</p>
Font color is #f0f5dc.
Compromise in colors is grey.
- Edi Rama
How to set background color?
<div style="background-color:#f0f5dc">Background color is #f0f5dc.</div>
Background color is #f0f5dc.
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