Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 588
dshukertjr Avatar asked Oct 26 '25 10:10

dshukertjr


2 Answers

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

like image 81
AbdelghanyMh Avatar answered Oct 29 '25 08:10

AbdelghanyMh


  1. Inspect a node in the DOM Tree.

    DOM Tree

  2. Click its color property to open the Color Picker. Add a color property to the node if it doesn't have one.

    color property

  3. Hover your mouse over the viewport.

    eyedropper

  4. Click when you're hovering over the color that you want to sample.

like image 27
Kayce Basques Avatar answered Oct 29 '25 08:10

Kayce Basques



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!