private void UpdateUI() { _conversionMethods.ConvertHexadecimalToRGB("#" + ktxtHexColourValue.Text); klblRGBOutput.Text = $"RGB Value: Red: { _conversionMethods.GetRed() }, Green: { _conversionMethods.GetGreen() }, Blue: { _conversionMethods.GetBlue() }"; pnlPreview.BackColor = Color.FromArgb(_conversionMethods.GetRed(), _conversionMethods.GetGreen(), _conversionMethods.GetBlue()); }