Design guide

How to Find a Hex Code From an Image

If the color you want already exists in an image, you do not need to recreate it by eye. Sample the actual pixel and copy the resulting hex value.

Find the color in five steps

  1. Save the image, screenshot or mockup that contains the color.
  2. Open it in a pixel color picker.
  3. Zoom in if the area is small or surrounded by similar shades.
  4. Tap the exact pixel you want to identify.
  5. Copy the hex value and test it in your design.

Image color vs. design color

Photos often contain many closely related shades because of lighting, reflections and compression. If you are building a reusable palette, sample several nearby pixels and choose the value that best represents the visual role you want.

Common uses

Want the shortcut? Contrast Checker – WCAG 2.1 gives you a purpose-built Android tool for this workflow.