The K in J.K. Rowling represents Kathleen.
J.K. Rowling was born Joanne Rowling in 1965. She did not originally have a middle name, but Bloomsbury requested that she use two initials for the publication of Harry Potter and the Philosopher’s Stone. Rowling chose Kathleen, the name of her paternal grandmother.
The initials also helped create a name that publishers believed would appeal broadly to young readers. Her publisher was concerned that some boys might avoid a book if they knew it had been written by a woman, so the cover used initials rather than the author’s full first name.
Rowling later became widely known simply as J.K. Rowling. The author has also published crime fiction under the name Robert Galbraith, which is a separate pen name rather than an explanation of the initials.