There is no "purple book" in the Diary of a Wimpy Kid series.
Greg Heffley's journals are depicted as standard composition notebooks (black/white marbled covers). The published books themselves have distinct cover colors:
If you meant a specific in-story item, it might be from fan fiction, a misremembered detail, or a different series.