Hex color #ff4242, RGB(255, 66, 66) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #ff4242 is a shade of red. In a RGB color space it is composed of 100% red, 25.88% green and 25.88% blue. In HSL notation it has 0° hue, 100% saturation and 62.9% lightness. The process color (CMYK) is combination of 0% cyan, 74.12% magenta, 74.12% yellow and 0% key (black). The closest short hexadecimal code of #ff4242 is #f44.
Example CSS code:
.setFontColor { color: #ff4242; }
.setBackgroundColor { background-color: #ff4242; }
How to set font color?
<p style="color:#ff4242">Font color is #ff4242.</p>
Font color is #ff4242.
Every person has their own colour.
- Haruki Murakami, Colorless Tsukuru Tazaki and His Years of Pilgrimage
How to set background color?
<div style="background-color:#ff4242">Background color is #ff4242.</div>
Background color is #ff4242.
Compromise in colors is grey.
- Edi Rama