Hex color #2a0f2f, RGB(42, 15, 47) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #2a0f2f is a shade of magenta. In a RGB color space it is composed of 16.47% red, 5.88% green and 18.43% blue. In HSL notation it has 290.6° hue, 51.6% saturation and 12.2% lightness. The process color (CMYK) is combination of 10.64% cyan, 68.09% magenta, 0% yellow and 81.57% key (black). The closest short hexadecimal code of #2a0f2f is #202.
Example CSS code:
.setFontColor { color: #2a0f2f; }
.setBackgroundColor { background-color: #2a0f2f; }
How to set font color?
<p style="color:#2a0f2f">Font color is #2a0f2f.</p>
Font color is #2a0f2f.
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:#2a0f2f">Background color is #2a0f2f.</div>
Background color is #2a0f2f.
Every person has their own colour.
- Haruki Murakami, Colorless Tsukuru Tazaki and His Years of Pilgrimage