Matsya Purana (Jyotisha Selections) · by Vyasa
Chapter 2 · Graha Shanti
ग्रहशान्तिः
केतोर्वै चित्रगुप्तञ्च सर्वेषामधिदेवताः ।अग्निरापः क्षितिर्विष्णुरिन्द्र ऐन्द्री च देवताः ॥ १५ ॥
In the full Matsya Purana this is print ch 92 (standard ch 93), verse 15.
Chitragupta is the god of Ketu. These are the presiding gods of them all. Agni (fire), the waters, the earth, Vishnu, Indra and Aindri (Indrani) are gods too.
Simple meaning: Chitragupta goes with Ketu. Agni, the waters, earth, Vishnu, Indra and Indrani begin the second set of gods.
प्रजापतिश्च सर्पाश्च ब्रह्मा प्रत्यधिदेवताः ।
Prajapati, the snakes and Brahma complete the second set. Vinayaka, Durga, Vayu, Akasha and the two Ashvins are also called.
संस्मरेद्रक्तमादित्यमङ्गारकसमन्वितम् ।
Sun and Mars are red, Moon and Venus white, Mercury and Jupiter tawny, Saturn and Rahu black, the Ketus smoky.
ग्रहवर्णानि देयानि वासांसि कुसुमानि च ।
Cloths and flowers should match each planet's colour. Add incense, a canopy, fruit and flowers.