Updated color handling to fix background handling and collor darkening