Generally the solution of m-coloring on n vertex graph can be represented as an array c[1..n], where c[i] represents color of vertex i. A brute-force method will generate $m^n$ assignments. Verifying these $m^n$ options on n vertices in worst case will take n$m^n$ time. So, $O(nm^n) $ will be the upper bound.