How do you combat the problem of non websafe colours?

Just curious, because I just made a 1x1 creating PHP script to make custom non web safe pixels to use as background images etc.
How do you make non web safe colours work?

Should I not use them?
Ask and I’ll post my script.