Despite being a commands-only item, knowledge books display their name in white unlike other commands-only items (command blocks, scructure blocks...).
It would make sense to give yellow name to knowledge books since enchanted books already have a name displayed in yellow.
1) /give @p knowledge_book
2) Notice how the name is in white
Can confirm in 21w13a.