Somewhat related, but TIL the macOS Screenshot.app utility (and the system wide keyboard shortcuts) in Sonoma got HDR capability to help re-convey just a bit more fidelity. Even in PNG, it keeps the display profile, just not HDR.

Open Utilities->Screenshot.app Options->Capture/Capture Format->HEIC. Note, it changes the system screenshot default away from PNG too.