![css color codes for brown css color codes for brown](https://colorcodes.io/wp-content/uploads/2020/07/Dark-chocolate-brown-color-swatch.jpg)
I originally encountered this when someone pointed out that you could do color="crap" and, well, it comes out brown. As the string starts off as 9 characters, we keep the second ‘C’ this time around, hence it ends up in the final colour value. This also answers the other part of the question: Why does bgcolor="chucknorr" produce a yellow colour? Well, if we apply the rules, the string is: c00c00000 => c00 c00 000 => c0 c0 00 Here’s an example demonstrating the bgcolor attribute in action, to produce this “amazing” colour swatch: Truncate each of the arguments from the right down to two characters. Split into three equal groups, with each component representing the corresponding colour component of an RGB colour: RGB (c00c, 0000, 0000) Pad out to the next total number of characters divisible by 3 (11 → 12): c00c 0000 0000 Replace all nonvalid hexadecimal characters with 0’s: chucknorris becomes c00c0000000 If we apply the rules in turn from the blog post, we get the following:
![css color codes for brown css color codes for brown](https://colorcodes.io/wp-content/uploads/2020/07/Coyote-brown-color-swatch-768x402.jpg)
It is from the blog post A little rant about Microsoft Internet Explorer's color parsing which covers it in great detail, including varying lengths of color values, etc. For example the values #F0F0F0, F0F0F0, F0F0F, #FxFxFx and FxFxFx are all the same.
![css color codes for brown css color codes for brown](https://about.canva.com/wp-content/uploads/sites/8/2019/03/tan.png)
An incorrect digit is simply interpreted as 0.