Answer for change bg color for post and tag

i changed “blog pages show at most” to 10, and it looks like the category/blog page- shows upto 10 recent posts, which is what I want…but the same setting applies to the homepage- I want the homepage to show only 5 and not 10. Is there anyway to change the setting that applies to only the homepage?