Refactored color initialization