fix hex issue when r,g, or b are single digit

appends leading zero if r,g,or b are single digit