Hex color #ff2f45, RGB(255, 47, 69) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #ff2f45 is a shade of red. In a RGB color space it is composed of 100% red, 18.43% green and 27.06% blue. In HSL notation it has 353.7° hue, 100% saturation and 59.2% lightness. The process color (CMYK) is combination of 0% cyan, 81.57% magenta, 72.94% yellow and 0% key (black). The closest short hexadecimal code of #ff2f45 is #f24.
Example CSS code:
.setFontColor { color: #ff2f45; }
.setBackgroundColor { background-color: #ff2f45; }
How to set font color?
<p style="color:#ff2f45">Font color is #ff2f45.</p>
Font color is #ff2f45.
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:#ff2f45">Background color is #ff2f45.</div>
Background color is #ff2f45.
Compromise in colors is grey.
- Edi Rama