Website Color Extractor

Find the colours a website uses. Paste a link, paste its HTML or CSS, drop a screenshot, or use the one-click bookmarklet to read the live page. Get a clean palette with roles, contrast checks, tints and shades, and exports for CSS, Tailwind, JSON and more. Everything runs in your browser.

The most reliable way. The bookmarklet runs on the website you are visiting, reads the colours your browser really draws, and copies them. Then you paste the result here.

  1. Drag this button to your bookmarks bar: 🎨 Extract colours. Or press Copy code and save it as a bookmark yourself.
  2. Open the website you want, and click the bookmark.
  3. Come back and press Paste, or paste into the box.

Some sites block bookmarklets with strict security settings. If that happens, use the console version, or the screenshot tab.

Reads hex, rgb(), rgba(), hsl() and named colours, plus CSS variables like --brand: #2a6df4, inline styles, SVG fills and the theme-color tag.

Browsers only let this page read sites that allow it, so many sites will say no. If so, use the bookmarklet, which works on almost any site.

Drop a screenshot or image
or click to browse, or paste with Ctrl+V

Your palette

Suggested roles

Tune the list

Colour details

Accessible pairs

Text and background pairs from your palette that pass WCAG contrast. 4.5 or more is AA for normal text, 7 or more is AAA.

TextBackgroundRatioLevel

Export

Colours are read from what you give the tool. A website can use images, gradients and effects that no extractor sees perfectly, so treat the result as a very good starting point.

To find the colours a website uses, use the bookmarklet in the tool above. Drag it to your bookmarks bar, click it on any site, and paste the result back here. You get a clean palette with the main background, text and brand colours, contrast checks, tints and shades, and exports for CSS, Tailwind, JSON and more. You can also paste HTML or CSS, or drop in a screenshot. Everything runs in your browser.

What it doesPulls every colour out of a website, CSS file or image and organises them into a palette.
Best methodThe bookmarklet. It works on almost any site, because it runs inside the page you are viewing.
CostFree. No account, no signup, no extensions to install.
PrivacyRuns in your browser. Your pasted code and images are never uploaded.
1GetRead colours from a live page, from pasted code, from a link, or from a screenshot.
2CleanMerge near-identical colours, hide greys, and see which colours play which role.
3UseCheck contrast, build tints and shades, then copy or download your palette.
Quick start

How to extract colours from a website

  1. Open the “Live page” tab. It is the first tab, and the most reliable one.
  2. Drag the “Extract colours” button to your bookmarks bar. Or press Copy bookmarklet code and save it as a bookmark by hand.
  3. Visit the website you are curious about. Click your new bookmark. You see a message saying the colours were copied.
  4. Come back to this page and press Paste from clipboard. The tool reads the result and builds your palette.
  5. Tidy the list. Use the merge slider to join near-duplicates, and hide pure black, white or greys if you want only the brand colours.
  6. Export. Copy the colours as CSS variables, a Tailwind config, JSON or a plain list, or download swatches as SVG or PNG.
Choose a method

Four ways to get colours

Websites do not hand out their colours in one neat file, so the tool gives you four ways in. Pick the one that fits what you have.

The four ways to extract colours Four cards. The live page bookmarklet is the most reliable and works on almost any site. Pasting HTML or CSS works whenever you have the code. The website link only works on sites that allow it. A screenshot or image works with anything you can see. 🔖</>🔗🖼️ Live pagePaste HTML or CSSWebsite linkScreenshot Bookmarklet that readsthe real pageAny code you can copy,even just a few rulesFetches the page foryou, if it allows itAnything you can see,even apps and mockups Most reliableWorks anywhereOften blockedApproximate Not sure? Start with the bookmarklet. If it is blocked, try a screenshot.
MethodBest whenWhat to know
Live page (bookmarklet)You can open the site in your browser.Reads the colours the browser really draws, including text, backgrounds, borders, icons and gradients. A few sites with strict security rules block it.
Paste HTML or CSSYou have the code, or want to test a few rules.Reads hex, rgb, hsl and common named colours, plus CSS variables. There is a “Try a sample” button.
Website linkThe site is open to outside requests.The tool tries to fetch the page and up to 12 of its stylesheets. Many sites will refuse, and the tool tells you when that happens.
Screenshot or imageYou only have a picture, or the site blocks everything else.Finds the dominant colours in the picture, from 3 to 16. It cannot know which are text or backgrounds.
Step by step

Using the bookmarklet

A bookmarklet is a small bookmark that runs a few lines of code instead of opening a page. The one in this tool looks at the visible elements on a page, up to 8,000 of them. For each one it reads the text colour, the background colour and image, borders, icon fills and strokes. It also notes the site’s theme colour if it has one. It then counts how often each colour appears and copies the result to your clipboard.

The three bookmarklet steps Step one, drag the Extract colours button to your bookmarks bar. Step two, open any website and click the bookmark. Step three, paste the copied result into the tool to see the palette. 1Drag to the bar 🎨 Extract coloursdrop it on yourbookmarks bar 2Click it on a site “Copied 42 colour entries” 3Paste in the tool your palette appears Prefer not to use a bookmark? Press “Copy console version” and paste it into your browser’s console.
  • If your site will not let you drag the button. Press Copy bookmarklet code, create a new bookmark by hand, and paste the code into its address box.
  • If a site blocks bookmarklets. A few sites use strict security rules that stop them. Use the console version, or take a screenshot and use the image tab.
  • If the clipboard will not paste. Some browsers block reading the clipboard. Paste into the box with Ctrl+V and press Read result.
Your palette

Reading the results

When colours are found, you see a short summary: how many colours, how many declarations were read, the source, and how many modern colour formats were skipped. Below it are the suggested roles, and below that the full list.

Suggested colour roles An example palette with five roles: Background in light grey, Text in dark navy, Primary in blue, Secondary in coral, and Accent in a darker blue. #FAFAFA#14213D#2A6DF4#FF7A59#1B4FC2 BackgroundTextPrimarySecondaryAccent most-used lightor dark fillmost-usedtext colourmost-usedstrong coloura differentstrong hueanother boldcolour

These example colours come from the tool’s built-in sample. Your own results will match the site you extract.

The tool picks these roles with simple rules, so use them as a first guess. It looks for the most-used light or dark background, the most-used text colour, and the most-used strong, colourful shades for primary, secondary and accent. The roles are a quick way to read a palette, not a rule about how the site was designed.

ControlWhat it does
Merge similar coloursJoins colours that look almost the same, for example #FAFAFA and #FFFFFF. Move it to 0 to keep every exact shade.
Hide colours used fewer thanRemoves colours that appear only a few times, which are often one-off details.
Sort byMost used, hue, lightness or saturation.
ShowAll colours, or only text colours, backgrounds, borders, fills and strokes, or shadows.
Hide pure black and white, hide greysLeaves only the colourful brand shades.

Click any swatch to select it and copy its hex code. The details panel then shows the colour in HEX, RGB, HSL and CMYK, the nearest common colour name, and any CSS variables that use it.

Accessibility

Contrast: can people read the text?

Good design needs text that people can read. The standard way to measure this is the contrast ratio, a number from 1 (no difference) to 21 (black on white). The web accessibility guidelines (WCAG) ask for at least 4.5 for normal text, which is level AA, and 7 for the stricter level AAA. Large text needs only 3.

The contrast ratio scale with examples A scale from 1 to 21 with marks at 3, 4.5 and 7. Light grey text on white is about 1.6 to 1 and fails. Mid grey 767676 on white is 4.54 to 1 and passes AA. Dark navy on near-white is about 15 to 1 and passes AAA. FailLarge textAAAAA 134.5721 Hello world#CCCCCC on whiteabout 1.6 : 1, fails Hello world#767676 on white4.54 : 1, passes AA Hello world#14213D on #FAFAFAabout 15 : 1, passes AAA The tool shows the ratio and the level for any colour against white and against black.

The details panel gives the ratio of the selected colour on white and on black, with a plain verdict: AAA, AA, AA for large text only, or Fail. Further down is the Accessible pairs table. It tries every combination of your top 16 colours and lists up to 14 text-and-background pairs that reach 4.5 or more, best first. That is a ready-made short list of safe combinations from the site’s own palette.

Beyond extraction

Tints, shades and harmonies

Once you have a colour you like, the tool builds more from it. The tints and shades strip gives you ten steps, labelled 50 to 900, from very light to very dark, in the style many design systems use. Click any step to copy it.

An example tints and shades scale Ten blue swatches labelled 50, 100, 200, 300, 400, 500, 600, 700, 800 and 900, going from very light to very dark. 50100200300400500600700800900 Light for backgrounds, middle for buttons, dark for text and hover states

The same panel shows harmonies, which are colours that go well with the one you picked: the complement (opposite on the colour wheel), two analogous neighbours, two triad colours and two split-complement colours. They are a handy start when a site has only one brand colour and you need friends for it.

Exports

Taking your palette with you

FormatLooks likeUse it for
CSS variables--primary: #2a6df4;Any website or app stylesheet.
SCSS variables$primary: #2a6df4;Projects that use Sass.
Tailwind config'primary': '#2a6df4'Paste into the colors section of a Tailwind setup.
JSONhex, rgb, uses, rolesScripts, design tokens and data work.
CSVhex, r, g, b, uses, rolesSpreadsheets and reports.
Hex listone code per lineQuick sharing in chat or notes.
SVG and PNG swatchesa strip of colour blocks with codesSlides, mood boards and style guides.

You choose how many colours go into an export: the top 8, 12, 24 or all. The suggested roles are used as names where they exist (background, text, primary, secondary, accent), and the rest are numbered.

Ideas

What people use a colour extractor for

  • Learning from good design. Study how a well-made site pairs a main colour with neutrals and one bold accent.
  • Auditing your own site. Find out how many near-identical blues have crept into your CSS, and tidy them up with the merge slider.
  • Building a style guide. Collect the real colours a brand uses, then export them as variables for a design system.
  • Checking contrast. Spot text and background pairs that are hard to read before an accessibility review.
  • Matching a client’s brand. Pull colours from their website or a screenshot of their logo sheet, then build tints and shades.
  • Starting a dark mode. Use the dark and light neutrals and the lightness sort to plan a second theme.
A note on brandsColours themselves are a normal source of inspiration. Logos, names and other brand marks are protected, so always follow a brand’s own guidelines. This is general information and not legal advice.
Troubleshooting

If something looks off

What you seeLikely reasonWhat to try
“This site does not allow…” when using a linkThe site blocks other pages from reading it.Use the bookmarklet tab, or paste the page’s CSS.
Nothing happens when I click the bookmarkThe site blocks bookmarklets.Use the console version, or use a screenshot.
“That text is not a bookmarklet result”The pasted text is not the copied result.Click the bookmark again, then paste with Ctrl+V into the box.
Too many almost-identical coloursThe site uses many slightly different shades.Raise the merge slider, or hide colours used only once or twice.
A brand colour is missingIt lives in an image, or in a format the tool skips.Take a screenshot and use the image tab.
“Skipped modern formats” is above zeroThe code uses newer colour types like oklch().Use the bookmarklet, which reads the colours the browser has already converted.
The roles look wrongThe suggestion rules are simple guesses.Ignore the label and pick colours by eye from the grid.
Honest notes

What this tool cannot do

  • It cannot read any website from a link. Browsers block that, so the link method works only on sites that allow it. The bookmarklet is the dependable way.
  • It sees one moment of a page. The bookmarklet reads colours as they are drawn right then. Hover states, other pages, dark mode and pop-ups only show up if they are on screen when you click.
  • Newer colour formats are skipped in pasted code. Types like oklch(), lab() and color() are counted but not converted. The bookmarklet avoids this, because the browser converts them first.
  • Named colours are limited. The tool knows a list of common names such as red, navy and coral, but not all 148 CSS names.
  • Pictures are not read inside a page. Photos and logos on a website are not scanned. Use a screenshot for those.
  • “Uses” are counts, not exact areas. A colour used by many small elements can count higher than one that covers a big hero area.
  • Roles and names are guesses. The suggested roles and the nearest colour names come from simple rules.
  • Nothing is saved. If you reload the page, the palette is gone. Export it first.
Privacy

Is my data uploaded?

No. Pasted code, bookmarklet results and images are read and processed inside your browser, and nothing is sent to a server. The tool loads no outside libraries. If you use the link method, your browser makes the request directly to that website, and nothing goes through us. The bookmarklet only reads the page you are looking at, and it puts the result on your own clipboard.

FAQ

Questions people ask

How do I find the colours a website uses?

Use the bookmarklet in the tool. Drag it to your bookmarks bar, click it on the website, and paste the result back into the tool. You can also paste the site’s HTML or CSS, or upload a screenshot.

What is a bookmarklet?

A bookmarklet is a bookmark that runs a short piece of code on the page you are viewing, instead of opening a web address. This one reads the page’s colours and copies them to your clipboard.

Why does the website link method not work for many sites?

Browsers do not let one web page read another website unless that site allows it. Most sites do not, so the request is blocked. The bookmarklet avoids this by running on the site itself.

Can I extract colours from an image or screenshot?

Yes. Drop an image or paste one with Ctrl+V. The tool finds the dominant colours, from 3 to 16. It cannot tell which colours are text or backgrounds, since a picture has no such labels.

Does it find CSS variables?

Yes. When you paste CSS, the tool reads custom properties like --brand: #2a6df4, follows var(--brand) where it is used, and lists the variables it found in a table.

What does “merge similar colours” do?

It joins colours that look almost the same into one, so you do not get ten nearly identical greys. You can set the strength with a slider, or turn it off by moving it to zero.

How does the tool pick primary and secondary colours?

It uses simple rules. It looks for the most-used strong, colourful shades that are neither too light nor too dark, and picks different hues for primary and secondary. They are a first guess, not a design fact.

What is a good contrast ratio?

For normal text, WCAG asks for at least 4.5 to 1 for level AA, and 7 to 1 for level AAA. Large text needs 3 to 1. The tool shows the ratio and level for any colour against white and black.

Which export formats are available?

CSS variables, SCSS variables, a Tailwind config, JSON, CSV and a plain list of hex codes. You can also download SVG or PNG swatches.

Can I pick a colour from anywhere on my screen?

Yes, in browsers that support the eyedropper, such as Chrome and Edge. Press the eyedropper button and click any pixel on your screen, even in another window.

Are my files or pages uploaded?

No. Everything is processed in your browser. The tool loads no outside libraries, and the bookmarklet sends nothing anywhere. It only copies the result to your own clipboard.

Is it legal to copy a website’s colours?

Colours are commonly used as inspiration, but logos, names and other brand marks are protected. Follow each brand’s guidelines. This is general information, not legal advice.

Waqas Amjad

Hi, I’m Waqas, the person behind Brivonto. I started this site because I wanted online tools that simply work, without sign-ups or watermarks. I build each tool myself and keep improving them based on your feedback. Questions or ideas?

Get in touch.

All brand names mentioned on this page belong to their owners. This tool is an independent project and is not affiliated with any website it can read colours from.