[0-9a-fA-F]{6} would be more precise.
Hope this helps, -gjb-
In reply to Re: Background color HTML regexp by gjb in thread Background color HTML regexp by Tricky