In this article, I'm giving an introduction into how colors are mixed, what problems RGB LEDs have in that regard and how to combat those problems using actual white LEDs. Plus some basic code to fix such a problem.
Check it out: https://blog.athrunen.dev/experimenting-with-efficiently-combining-rgb-and-true-white/