Don't generate invalid rgba colors

Add some bounds checking to ensure valid CSS is generated

Closes #198