--- title: Use Abbreviated Hex Code --- # Use Abbreviated Hex Code --- ## Problem Explanation Red, which is `#FF0000` in hex code, can be shortened to `#F00`. That is, one digit for red, one digit for green, one digit for blue. This reduces the total number of possible colors to around 4,000. But browsers will interpret `#FF0000` and `#F00` as exactly the same color. ```html ``` --- ## Solutions
Solution 1 (Click to Show/Hide) ```html

I am red!

I am fuchsia!

I am cyan!

I am green!

```