BCGControlBar Pro for MFC
BOOL CBCGPColor::IsDark ( ) const

Tells whether the color is a dark.