A colour is a same-suit hand that does not fall into the higher pure-sequence class. Check whether its ranks are consecutive before comparing it with a mixed sequence. Equal colours then need the table’s within-class comparison.
Practice example: reclassify after swapping an individual card
Compare 3♥ 4♣ 5♦ with 8♣ 10♣ K♣. Change only the five to 9♦ and compare the hand classes again.
The mixed sequence wins the first comparison. After the change, that hand has only high card and the club colour wins. Do not carry over the earlier verdict or simply compare the highest rank; changing one card can change the entire class.