Additional check for color validations.

Checks that all digits of the hex are indeed valid and that it's not empty.
If the above conditions are not met then it returns #ffffff