Web APIs
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.
Live previewWeb APIs Playground - Create, Share, Learn JavaScript Web APIs