You should return a Color object from the Converter class something like this
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
if (value is string)
{
return Colors.Yellow;
}
return Colors.Black;
}