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.
How to extract colours from a website
- Open the “Live page” tab. It is the first tab, and the most reliable one.
- Drag the “Extract colours” button to your bookmarks bar. Or press Copy bookmarklet code and save it as a bookmark by hand.
- Visit the website you are curious about. Click your new bookmark. You see a message saying the colours were copied.
- Come back to this page and press Paste from clipboard. The tool reads the result and builds your palette.
- 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.
- Export. Copy the colours as CSS variables, a Tailwind config, JSON or a plain list, or download swatches as SVG or PNG.
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.
| Method | Best when | What 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 CSS | You 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 link | The 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 image | You 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. |
Why pasting a link often does not work
It seems like the easiest method: paste a web address and get the colours. The catch is a safety rule built into every browser. A web page is not allowed to read another website’s content unless that website says yes. Most websites say no, so the browser blocks the request before it even starts.
The bookmarklet works because it runs on the website itself, where reading colours is allowed.
The tool still offers the link method, because it works on some sites, and it tells you clearly when a site blocks it. When it does, switch to the bookmarklet tab. It takes about ten seconds.
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.
- 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.
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.
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.
| Control | What it does |
|---|---|
| Merge similar colours | Joins colours that look almost the same, for example #FAFAFA and #FFFFFF. Move it to 0 to keep every exact shade. |
| Hide colours used fewer than | Removes colours that appear only a few times, which are often one-off details. |
| Sort by | Most used, hue, lightness or saturation. |
| Show | All colours, or only text colours, backgrounds, borders, fills and strokes, or shadows. |
| Hide pure black and white, hide greys | Leaves 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.
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 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.
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.
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.
Taking your palette with you
| Format | Looks like | Use 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. |
| JSON | hex, rgb, uses, roles | Scripts, design tokens and data work. |
| CSV | hex, r, g, b, uses, roles | Spreadsheets and reports. |
| Hex list | one code per line | Quick sharing in chat or notes. |
| SVG and PNG swatches | a strip of colour blocks with codes | Slides, 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.
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.
If something looks off
| What you see | Likely reason | What to try |
|---|---|---|
| “This site does not allow…” when using a link | The site blocks other pages from reading it. | Use the bookmarklet tab, or paste the page’s CSS. |
| Nothing happens when I click the bookmark | The 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 colours | The site uses many slightly different shades. | Raise the merge slider, or hide colours used only once or twice. |
| A brand colour is missing | It lives in an image, or in a format the tool skips. | Take a screenshot and use the image tab. |
| “Skipped modern formats” is above zero | The code uses newer colour types like oklch(). | Use the bookmarklet, which reads the colours the browser has already converted. |
| The roles look wrong | The suggestion rules are simple guesses. | Ignore the label and pick colours by eye from the grid. |
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.
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.
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.
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?
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.

