Let cd( G) be the set of all irreducible complex character degrees of a finite group G. In this paper, we show that if a, b, and c are pairwise relatively prime integers and ${\rm{cd}} \left(G\right) \subseteq \{1, a, b, c, ab, ac\}$, then either G is solvable or { a, b, c} = {2 − 1, 2, 2 + 1} for some $f \geqslant 2$ and cd ( G) = {1, a, b, c}.