Utility functions for color conversion.
Converts a Color to a hex string (#RRGGBB or #AARRGGBB).
Parses a hex string to a Color. Supports formats: #RRGGBB, #AARRGGBB. Returns null if the format is invalid.