Search code examples
google-chromegoogle-chrome-devtoolscolor-picker

Is there an eyedropper tool in Google Chrome DevTools?


I want to get a color from a website using Google Chrome's DevTools.

I know that you can get the color code if it's set in the CSS, but I want to get a color from for example an image.

Is this possible with google Chrome's DevTools?


Solution

  • Using EyeDropper API

    1. Option + ⌘ + J (macOS) or Shift + CTRL + J (Windows/Linux).
    2. await new EyeDropper().open();
    3. Hover over the color you want and tap on it
    4. The hex value will be Printed into the console.

    https://twitter.com/tomayac/status/1432969851811794944?s=20

    Source