Its best to stick to browser safe colors for background and text colors as the contrary could put all the efforts in jeapoardy as the browser not recognizing the colors could change the it to browser safe colors.So in that case the end user might see dithered colors in place of intended color this could be quite irritating for the end user.