Hex to RGB and vice versa conversion functions

Border colour is need in RGB in order to add alpha, so added RGB to HEX
and vice versa conversion functions, and adjusted border colour in mock
canvas to work accordingly. Increased border shadow size so that border
colour can be visible easily.