Background-Foreground color detection

Change-Id: I3e27df59eec14def0be76e014ad730eb152507e2