A note on stable sets and colorings of graphs