Combination of silica sol and dyes on textiles