#include <gulcolor.h>
//Here iLabel is a class member of type CEikLabel*
iLabel= new (ELeave) CEikLabel;
iLabel->SetContainerWindowL( *this );
iLabel->SetTextL( _L("Some Text") );
// Using blue as foreground color
iLabel->OverrideColorL( EColorLabelText, KRgbBlue );
// Set red as background color
iLabel->OverrideColorL(EColorControlBackground, KRgbRed )