Creating SolidColorBrush from hex color value November 28, 2022 by Tarik Try this instead: (SolidColorBrush)new BrushConverter().ConvertFrom("#ffaacc");