The contrived example intentionally picks the worst colors for every element. Yellow for the background, really? Who is the author trying to fool? The generated five-color palette works absolutely fine. You just gotta use it right.
Thanks for the link. This is definitely helpful as someone who is not a designer, but disappointed that it didn't go in more depth about how you _could_ use a color palette in UI color schemes.
to go with that article, the best advice for picking different shades of the same hue is to work in HSL color space rather than trying to use RGB. You'll sit there all day trying and failing to find colors that match in RGB.