It totally depends on the color or the situation where it's used. Kanji is more common when the kanji word is common (e.g. 赤, 青, 白, 黒), hiragana is preferred in books for children even for these colors, katakana is often used for the name of plants (菫色 vs. スミレ色), etc., etc.. You'd better to learn kanji if it's in joyo kanji.