// Store the color as a hex number
// string HexColor = string.Format("0x{0:X8}", clrPicker.Color.ToArgb()); // Original
string HexColor = string.Format("0x{0:X8}", RadColorpicker1.SelectedColor.ToArgb());
// Strip the unnecessary characters at the end of the hex number
txtHex.Text = "#" + HexColor.Substring(HexColor.Length - 6, 6);
HTH
Ashok