When you give yourself the effect Night Vision, the HUD and GUI both get purplish-black.
When the effect runs out, the purplish-black changes back to normal.
Environment
Microsoft Windows 10, Version 1903, OS Build 18362.388, Java 8 Update 201,
Build 1.8.0_201-b09
Duplicate of MC-161849