Regarding the final output

how is the color for {1,2,3}->2 ?
and for {4,5,6}->3

initially, the color was set to 1 and then DFS would first be made on the node “1” so the color for SCC {1,2,3} should be 1 and then color was incremented, so color for {4,5,6} should be 2 according to me