how to set foreground from code wpf

Code Example - how to set foreground from code wpf

                
                        Foreground = (Brush)new BrushConverter().ConvertFrom("#324f5d")