You are browsing a site and a color stops you. A button blue that feels exactly right, a warm gray behind a headline, the precise green of a logo, and you want it in your project. The obvious move is to open a color picker and point it at the site, and that is where the honest answer comes first: the Color Picker on Ovatly cannot reach into another website.
That is not the dead end it sounds like. Picking a color from a website is two jobs, not one: capturing the value, which your browser and system already do, and verifying, converting and safely reusing it, which is what the picker is for. This guide walks through both halves.
Contents
- Quick answer
- The honest limit: what the picker can and cannot do
- Step one: capture the HEX value
- Step two: verify and convert in the Color Picker
- Worked example: one blue, captured and checked
- When the color lives inside an image
- A short, honest note on reuse
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
Quick answer
Capture the color first: read its declared value in your browser's developer tools, or sample it with your system's color picker. Then open the Color Picker, type the HEX you captured, and read the color in HEX, RGB and HSL. Copy the notation your job needs, and check the contrast ratios against black and white before using the color for text. If the color sits inside an image, use the Image Color Picker instead: upload it and click the point you want.
The honest limit: what the picker can and cannot do
The Color Picker shows one color in the three notations the web actually uses, HEX, RGB and HSL, with a large preview and its contrast ratios against black and white. It works on a color you hand it: a typed HEX, like #2563EB, or a swatch pick. The swatch is your operating system's own picker, which matters: the sampling ability people expect from this page already lives in their system.
What the picker never does is open another site, inspect its styles or sample its pixels. Any guide claiming a standalone picker page can pull a color out of a live site is skipping a step, the one that belongs to your browser.
Step one: capture the HEX value
Most website colors are declared in the site's styles, and browsers can show you those declarations. The general workflow, whichever browser you use: open the site, bring up the developer tools, inspect the element wearing the color, and read the value its styles declare. That value is exact as written, usually a HEX code or an RGB value you can convert.
The alternative is your operating system's color picker, the same picker the Color Picker's swatch opens, which can sample a color from what is on your screen. Either route ends with a HEX value, ready to verify. Prefer the declared value when you can get it: a screen sample reads a rendered pixel, the declared value is its source.
Step two: verify and convert in the Color Picker
- Open the Color Picker and type the HEX value you captured.
- Read the result panel: the large preview should match the color you saw. If it clearly does not, the capture went wrong; better to find out here than in your finished design.
- Copy the notation you need with its Copy button: HEX for CSS, RGB where a tool asks for three channels, HSL to adjust by eye.
- Check the contrast ratios against black and white before the color goes near text. This is the step most people skip.
Worked example: one blue, captured and checked
Say the color is the blue #2563EB, captured from a site's button. Typed into the picker, it verifies as rgb(37, 99, 235) and hsl(221, 83%, 53%), and the preview matches the button, so the capture is good.
Now the reuse lesson, in a single pair of numbers. Against white, this blue measures 5.17:1, passing the WCAG AA minimum of 4.5:1 for normal text. Against black it measures 4.06:1, which does not pass. So the color that looked strong on its light home page would fail as text on a dark section of yours. The color did not change; the background did. That is why the contrast check belongs inside the picking process: this blue belongs on light backgrounds, and the picker says so before your visitors have to squint.
When the color lives inside an image
Developer tools report the colors a page declares in its styles. They cannot tell you the color of a pixel inside a photograph, logo or screenshot, because the page never declared it. For those, save the image and use the Image Color Picker tool, built for exactly this job: upload the image, click any point to read its color, then bring it back to the Color Picker for the same verification and contrast steps.
A short, honest note on reuse
A color value is a fact about a site, like a word in its headline. Noting that a button is #2563EB and using that blue yourself is ordinary design work, and matching admired colors is how designers build an eye. What this guide is not suggesting is rebuilding their page: the layout, the wording, the artwork and the overall look are their work, not a sampled value. Take the color. Do your own design with it.
Limitations and honest tradeoffs
The picker's panel shows HEX, RGB and HSL, and nothing else. Your operating system's picker, which the swatch opens, may offer extra formats this page does not display. HSL carries a rounding caveat too: rounded to whole numbers, converting back can differ by one unit in a channel, while HEX and RGB are always exact. Record a captured color as HEX or RGB when it has to stay precise.
The capture step has its own tradeoff. A value read from the site's declared styles is exact. A screenshot sample is only as exact as that copy; compression and lighting can shift it. And the picker takes one color at a time: a palette lifted from a site is several rounds of capture and verify, not one import.
Common mistakes
- Expecting the picker to sample the site for you. It cannot. Capture the HEX with your browser or system picker, then bring it here.
- Skipping the verification preview. If the preview does not match the color you saw, the captured value is wrong. Thirty seconds here saves shipping a wrong color everywhere.
- Reusing the color for text without the contrast check. A color that passed on a light site can fail on your dark background. The blue in the worked example passes on white and fails on black.
- Typing a color name into the picker. Names are invalid input: the picker accepts a HEX of 3 or 6 characters of 0-9 and A-F, or a swatch pick.
- Sampling a screenshot when the declared value was available. Read the styles first; the declared value is exact, the screenshot is a copy.
FAQs
Can the Color Picker sample a color straight from another website? No. The picker works on a color you give it, typed as a HEX value or chosen with the swatch, and the swatch is your operating system's own picker. Sampling a live site belongs to your browser's developer tools or that system picker; once you have the HEX, this tool verifies and converts it.
What if the color I want is inside an image on the site? Use the Image Color Picker tool instead. Upload the image there and click any point to read its color. Styles and developer tools can only report colors a page declares, not a pixel inside a photograph or logo.
What should I do once I have captured a HEX value? Type it into the Color Picker and read the three notations: HEX, RGB and HSL. Copy the one your job needs with its Copy button, then check the contrast ratios against black and white before using the color for text.
Why does the same color pass on one background and fail on another? Contrast is a relationship between two colors, not a property of one. The blue #2563EB measures 5.17:1 against white, which passes WCAG AA for normal text, and 4.06:1 against black, which does not, so that blue belongs on light backgrounds.
Is it all right to reuse a color you found on another website? A color value is a fact about that site, like a word in its headline, and matching it is normal design work. Building your page to look like theirs is a different matter. Take the color, then do your own design with it.
Conclusion
Picking a color from a website is a capture followed by a check. Your browser's developer tools or your system's picker do the capturing, since the Color Picker cannot reach into a live site. From there the picker earns its place: it verifies the value, shows it in HEX, RGB and HSL with clean copies, and warns you, through its contrast ratios, when a borrowed color will not survive your background. For the arithmetic behind those notations, our sibling guide on converting a color from HEX to RGB takes one code apart pair by pair. For more guides in this series, see the Color and Design Tools guides.