About the Color Picker
Designers, developers, students and anyone preparing slides or social posts often need the exact code for a color they like. This color picker lets you choose a color visually and shows its value in HEX, the compact six-digit form used in stylesheets, RGB, which describes red, green and blue channels, and HSL, which describes hue, saturation and lightness and makes it easy to create lighter or darker versions. A live preview, a range of tints and shades and guidance on readable text colors help you build a consistent look across a website, a presentation or a set of social media graphics. For checking text against backgrounds, use the Color Contrast Checker, and to sample colors from a photo, the Image Color Picker.
The preview is deliberately big, because a tiny swatch gives a false impression of how a colour will feel across a whole button or background. Underneath it you will find lighter and darker versions of the same hue, the ready-made scale that most interface palettes are built from: one base colour, made progressively lighter and darker.
A contrast panel tells you how white text and black text would read on your colour, using the same ratios that accessibility guidelines use. That answers a practical question straight away: can this colour sit behind words, or is it better kept for panels, outlines and ornament?
How to use the Color Picker
- Pick your starting pointOpen your system colour chooser from the swatch or type a HEX code.
- Read the valuesThe HEX, RGB and HSL versions update together, and each one has its own copy button.
- Explore the scaleClick any lighter or darker step to make it the new starting colour.
- Check readabilityThe readability panel reports how white lettering and black lettering would fare on top of your colour.
Color Picker features
- Your operating system's colour chooser, paired with a big swatch that updates instantly
- HEX, RGB and HSL values, each with its own copy button
- Type a HEX code directly instead of picking
- Lighter and darker steps produced automatically
- Readability verdicts for white lettering and for black lettering
- Click any swatch to carry on from that colour
Common uses
- Recording a brand colour in every format a team will need
- Producing a graded range of one colour for a design system
- Choosing lettering that stays legible on a tinted panel
- Recreating a colour you spotted in a mockup or screenshot
- Translating one colour into HEX, RGB and HSL in the middle of a design job
Picking colours in practice: a scheme for a small business, thinking in HSL, eyedroppers, colour meaning, colour blindness and print
Choosing colours is easy; choosing colours that work together, stay readable and look the same across a website, a shop sign and a printed menu takes a little method. This guide builds a colour scheme for a small bakery's website and covers adjusting colours in HSL, sampling colours with browser tools, cultural associations, colour blindness, dark mode and handing colours to printers.
A worked example: a bakery's colour scheme
A bakery in Karachi has a logo in a warm brown. Picking that brown gives a main brand colour, recorded in HEX for the website and in RGB and HSL for design tools. A soft cream becomes the page background, a darker brown the text colour and a single accent, a muted rose, is reserved for buttons and offers. Writing all four down with their codes, and using nothing else, keeps the website, menus and social posts consistent.
Thinking in HSL
HSL describes a colour by hue, its position on the colour wheel from 0 to 360 degrees, saturation and lightness. Hover and pressed states for buttons are easy to make by keeping the hue and lowering lightness by about eight to ten points. Lighter backgrounds come from the same hue with high lightness and low saturation. Working this way keeps related colours visibly related.
Eyedroppers in the browser
Chrome's developer tools include a colour picker with an eyedropper that samples any colour on the page, and some Chromium browsers let websites offer an eyedropper of their own. Sampling a colour from a competitor's site or a reference image gives an exact starting point, which you can then adjust rather than guessing by eye.
Colour meaning
Colours carry associations. In Pakistan, green is strongly linked with the national flag and with religious themes, deep reds and maroons with weddings and celebrations, and gold with festivity. These associations can help a brand feel familiar, but check that a scheme does not send an unintended message, especially for charities, health services and finance.
Colour blindness
Red-green colour vision deficiency affects roughly one in twelve men in many populations. Never rely on colour alone to show meaning, such as marking errors only in red or showing a chart key only by colour. Add icons, labels or patterns, and check designs with the vision deficiency emulation in browser developer tools.
Dark mode versions
Colours chosen for a white background often glare on dark ones. For a dark theme, lower the saturation of bright brand colours slightly, avoid pure white text on pure black and test every text colour against the dark background with a contrast checker. Storing light and dark versions side by side keeps both themes consistent.
Naming and recording colours
Give colours names that describe their role, such as brand, accent, text and background, rather than names such as green2. Record HEX, RGB and HSL values in one place, with notes on where each colour is used. When someone else works on the brand later, they can follow the record instead of sampling colours from screenshots.
Screen versus print
Screens mix light in RGB, while printers mix inks in CMYK, and some bright screen colours cannot be printed at all. When colours will be used on menus, signs or packaging, convert them to CMYK, ask the printer for a proof and adjust before printing in quantity.
Common mistakes
- Picking many unrelated colours instead of a small, consistent set.
- Conveying meaning with colour alone.
- Reusing light-theme colours unchanged in dark mode.
- Sampling brand colours from compressed screenshots.
Related tools
To build a full scheme from one colour, use Color Palette Generator. To check text remains readable, try Color Contrast Checker, and to generate lighter and darker versions, Color Shades Generator.
Neutrals do most of the work
Most of any page is background and text, so the choice of off-white, grey and near-black shapes the overall feel more than the brand colour does. Warm greys with a hint of brown or yellow feel friendly and suit food and lifestyle brands, while cool greys with a hint of blue feel crisp and technical. Picking neutrals deliberately is time well spent.
Seasonal accents
Campaigns for Ramadan, Eid or Independence Day often call for special colours. Adding a temporary accent while keeping the core palette, typography and layout unchanged lets a brand celebrate without losing its identity. Once the campaign ends, the accent is retired and the usual scheme returns.
Testing on everyday phones
Budget phone screens often show colours more saturated or with a colour cast compared with expensive displays and laptops. Since many visitors use such phones, check important colours, especially subtle tints and greys, on an ordinary phone before finalising them. Differences that vanish on a premium screen can be obvious there.
Privacy
Colours are picked and converted in your browser. Nothing is uploaded or stored on a server.
Further reading: HEX, RGB and HSL Colour Codes, and Accessible Contrast.
Frequently asked questions
Which colour format should I use in CSS?
Any of the three works in every browser. HEX is short and familiar, RGB is handy when you also need transparency, and HSL is easiest to adjust by hand, because changing a single number makes the colour lighter, darker or more muted.
Where do the lighter and darker steps come from?
The tool rewrites your colour in HSL terms and then moves only the lightness figure, upwards towards white and downwards towards black, leaving the hue and the saturation exactly as they were. That keeps every swatch in the scale clearly related to the original.
What does the contrast ratio measure?
The difference in brightness between two colours, worked out from their relative luminance. Guidelines ask for at least 4.5 to 1 for normal text and 3 to 1 for large text, and the ratings show whether your colour reaches those levels.
Why does the same code look a little different on my phone and my laptop?
Screens differ in calibration, brightness and the range of colours they can show. The code is exact, but how it appears is not. Printing adds another step, since RGB colours have to be converted to ink colours first.
Can I sample a colour from a picture?
Not in this tool. Some browsers add an eyedropper to the system colour dialog that can pick from anywhere on screen, and the Image Color Picker on this site samples colours directly from a photo you open.
Are my colours saved anywhere?
No. Nothing you choose is stored or uploaded, so note down any codes worth keeping before closing the page, for example into your style guide or a note.