I would certainly consider the Harry Potter books to be 'YA' done right.
Only the first two. On purpose.
Notice how Rowling forces her audience to "step up" as the books got darker, chunkier, more complex. Her YA audience was growing up with the books. ie. Start the first one as a YA and then keep climbing.