Auto-detect BG color