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