The main protagonist in the 2021 animated Disney film Raya and the Last Dragon is an original fictional character. However, her character and personality are inspired by real people.
Malaysian screenwriter Adele Lim (who helped write the script for this film) has admitted that the character’s personality is a mixture of traits that she’s observed in Southeast Asian women (source).
The character Raya is also based on the Southeast Asian history of women becoming strong warriors. So, while Raya and the Last Dragon isn’t based on a specific legend, it is based on legendary female figures throughout Southeast Asian culture and history.