image
MDN Web Docs
EyeDropper API - Web APIs | MDN
The EyeDropper API provides a mechanism for creating an eyedropper tool. Using this tool, users can sample colors from their screens, including outside of the browser window.