Colour Picker: Get Hex Codes and Build Accessible Palettes
Free colour picker with eyedropper. Get the hex, RGB, HSL and OKLCH code of any colour on screen or in an image, generate palettes and shades, and check WCAG contrast ratios.
Free, no sign-upRuns in your browserNothing uploaded
Accepts hex, rgb(), hsl(), oklch(), lab() or a CSS colour name.
Notations
Sample colours from an image
Works in every browser, including those without the eyedropper API. Drop an image, then click a pixel - or extract the dominant colours at once.
or drop one here
Contrast checker
WCAG 2.1 relative luminance, with APCA for teams moving toward WCAG 3.
5.67:1
APCA Lc −83.1 · Minimum for body text
- Normal text (AA)4.5:1
- Large text (AA)3:1
- UI components & icons3:1
- Normal text (AAA)7:1
- Large text (AAA)4.5:1
Palette
Neighbours on the wheel. Calm and cohesive by construction.
Shade scale
11 steps generated in OKLCH and gamut-mapped back to sRGB, so the hex you copy is the colour you see.
Harmony: Analogous
Hue rotations applied in a perceptual space, not HSL.
This tool answers the question every designer asks eventually: what is the hex code of that exact colour? There are two ways to find out. The eyedropper reads the colour directly from anywhere on your screen, which works on a canvas, a photo, a video frame or another application. The image sampler does the same thing but scoped to one image you load here, which is useful when you want to pull a whole palette out of a logo or a photograph.
Once you have a colour, this page becomes a small colour studio. It shows the value in every notation you will actually meet in code - hex, RGB, HSL, HSV, CMYK, OKLCH and CIELAB - and it explains what OKLCH is for, because perceptual colour spaces are the difference between a generated palette that looks harmonious and one that looks muddy. From a single hex it can build an eleven-step shade scale the way Tailwind does, plus complementary, analogous, triadic and tetradic harmony schemes.
The contrast checker is the part that matters most for real work. It implements WCAG 2.1 relative luminance and reports the exact ratio against every AA and AAA threshold, plus an APCA lightness contrast value for teams moving toward WCAG 3. It also simulates protanopia, deuteranopia and tritanopia, which is how you catch the pairing that looks fine to you and unreadable to roughly one in twelve men.
Colour Picker & Palette Generator features
How to use the Colour Picker & Palette Generator
Pick a colour from your screen
Click Pick from screen and click anywhere on the page or another window. The eyedropper is supported in Chromium-based browsers; on Safari and Firefox use the image sampler below, which works everywhere.
Or load an image and sample it
Drop an image into the sampler, then click the pixel you want. You can also click Analyse image to extract the five to eight dominant colours automatically, with the share of the image each one covers.
Read the value in any notation
The panel shows hex, RGB, HSL, HSV, CMYK, OKLCH and CIELAB side by side. Click any of them to copy it. Change the format with the hex, RGB, HSL or OKLCH input to type a value directly.
Build a palette
Generate a Tailwind-style shade scale, or a harmony scheme based on complementary, analogous, triadic, split-complementary or tetradic relationships. Every swatch is one click to copy and one click to make current.
Check it is readable
Set a foreground and background colour to get the WCAG 2.1 ratio and the APCA Lc value, with a plain pass/fail for normal text, large text and UI components. Toggle the colour-blindness simulations to check whether the pairing survives.
Export it
Copy the palette as CSS custom properties, SCSS variables, a Tailwind v4 @theme block, an SVG swatch grid or JSON for a design-token pipeline.
Frequently asked questions
What is the hex code of this colour?
Why do I get 8-digit hex codes like #3B82F680?
What is OKLCH and why should I care?
What contrast ratio do I actually need?
What is APCA and should I use it instead of WCAG 2.1?
Why does the eyedropper not work in my browser?
Are my saved palettes sent anywhere?
How do I check a colour pair that is still being designed?
Related tools
Every tool, in one place
ToolForge has colour picker & palette generator plus a growing set of image, colour and developer tools. All of them run locally in your browser, free and without an account.
Browse all tools