Three ways of doing it. You can colour before texturing in which case the textured part will stand out from the coloured part as bare wood. Secondly do the texturing then colour. If you spray the whole thing will be coloured inside the textured wood as well. Thirdly texture, colour then sand back in which case the textured wood will remain coloured and the surrounding wood will lose the colour.,
May be other ways as well using sealer for example to restrict where the colour goes.
Pete