Hex color #f2f200, RGB(242, 242, 0) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #f2f200 is a shade of yellow. In a RGB color space it is composed of 94.9% red, 94.9% green and 0% blue. In HSL notation it has 60° hue, 100% saturation and 47.5% lightness. The process color (CMYK) is combination of 0% cyan, 0% magenta, 100% yellow and 5.10% key (black). The closest short hexadecimal code of #f2f200 is #ff0.
Example CSS code:
.setFontColor { color: #f2f200; }
.setBackgroundColor { background-color: #f2f200; }
How to set font color?
<p style="color:#f2f200">Font color is #f2f200.</p>
Font color is #f2f200.
When you photograph people in color, you photograph their clothes. But when you photograph people in Black and white, you photograph their souls!
- Ted Grant
How to set background color?
<div style="background-color:#f2f200">Background color is #f2f200.</div>
Background color is #f2f200.
Every person has their own colour.
- Haruki Murakami, Colorless Tsukuru Tazaki and His Years of Pilgrimage