Short answer: load the site to list every color with its hex code, or pick one with DevTools
How to find the hex color of a website
To find the hex color of a website, load it in Recolor (recolor.page) and open Site colours, which lists every color the page's CSS uses with its hex code. For one color, Chrome's and Firefox's DevTools have a color picker with an eyedropper. You can open the Recolor app to inspect a full page or use your browser tools to inspect individual elements.
Last updated
| Way | What you get | What it needs |
|---|---|---|
| Recolor's Site colours | Every color the page's CSS uses, with its hex code and how much of the page it covers | The site's address, in any browser |
| Chrome DevTools' Color Picker | The color of one declaration, in hex or another notation, and an eyedropper for any pixel on screen | Chrome on a computer |
| Firefox DevTools' Eyedropper | The color of any pixel on the page, copied to the clipboard | Firefox on a computer |
Every color at once, in Recolor
Type the site's address into Recolor and press Enter. Open Site colours: each row is a color of the page with its hex code, the properties it is used for, how often, and a bar for how much of the page it covers, the heaviest first. Shades that are nearly the same are shown as one row. Recolor reads colors from the CSS, so photos and image logos keep theirs and are not listed. How colors are weighed is explained in the mapping documentation.
To keep the colors, choose Use site colours in the Mapping panel. The palette's swatches take the site's own colors, each with its hex code on the swatch. A palette holds 2 to 10 colors. You can point at a swatch and press C to copy its hex code, as listed in the keyboard shortcuts reference. You can also open Export and its Hex tab for one hex code per line, as described in the export documentation. The guide to extracting a palette goes through this step by step.
One color at a time, in Chrome DevTools
Chrome DevTools' Color Picker docs describe the Color Picker in the Elements panel. Select an element, find
the color or *-color declaration in the Styles pane, and click the small square next to its value. The
picker shows the value, a Copy to clipboard button, and a switcher between notations, hex among them. You can
Shift-click the square to choose the notation directly.
The Eyedropper samples a color from the page or anywhere on the screen. Click its button, or press C, then click the color. Chrome DevTools' Color Picker docs note the Eyedropper samples only in sRGB. The picker's palette switcher can also show a Page colors palette, the colors DevTools finds in the page's stylesheets.
One color at a time, in Firefox DevTools
Firefox DevTools' docs on inspecting and selecting colors describe a color sample next to each color value in the Rules view of the Page Inspector, custom properties that hold a color included. Clicking it opens a color picker with an eyedropper.
Firefox DevTools' Eyedropper docs explain that the Eyedropper also works on its own, from the Browser Tools menu or the Page Inspector's toolbar. It works like a magnifying glass over the page, and it shows the color under it in the unit chosen in the Inspector's settings, and a click copies that color to the clipboard.
The colors of well-known sites, already read
Recolor's study read the home pages of the 1,000 most-linked sites, and each has a page with its main color, its five heaviest colors as hex codes and its palette. You can explore the website colors directory and see pages such as the colors of stripe.com.
The hex codes seen most across them are listed on the most common hex colors page. Once you have the hex codes, the contrast matrix tool checks every pair for readable text, and the CSS named colors list has pages with their hex codes.
Common questions
Can I find every hex color of a website at once?
Yes. Load it in Recolor and open Site colours, which lists every color the page's CSS uses with its hex code.
Do I need to install anything?
No. Recolor runs in the browser, and DevTools comes with Chrome and Firefox.
Can I copy a hex code with one key?
Yes. In Recolor, point at a swatch and press C; in Chrome's Color Picker, press C to start the Eyedropper.
Does Recolor read the colors in photos and logos?
No. It reads colors from the site's CSS; images keep their colors.
Can DevTools give the color in another notation?
Yes. Chrome's Color Picker switches between hex, rgb(), hsl(), oklch() and more.
Can I get the hex codes as a list?
Yes. Export's Hex tab in Recolor gives one hex code per line.
Sources
- Chrome DevTools' Color Picker docs developer.chrome.com
- Firefox DevTools' docs on inspecting and selecting colors firefox-source-docs.mozilla.org
- Firefox DevTools' Eyedropper docs firefox-source-docs.mozilla.org