Function deriveColors