What the Color Picker does
Use the color control to choose any color, or upload an image and click on it to sample a pixel. Where the browser supports it, you can also pick a color from anywhere on your screen.
The tool shows HEX, RGB and HSL codes and the contrast ratio against white and black to help you choose readable text colors.
How to use it
- Choose a color or load an image.
- Click a pixel to sample it.
- Copy the code you need.
Practical examples
- Match a brand color from a logo.
- Check whether white or black text reads better on a color.
Features
- Image sampling
- Screen eyedropper where supported
- Contrast ratios
Limitations
- Colors reflect the image pixel after browser color management, which may differ slightly from the original file in some formats.
- The screen eyedropper is available only in some browsers (for example Chrome and Edge).
Privacy
Images are read on your device only and are not uploaded.
Frequently asked questions
What contrast ratio do I need?
WCAG AA asks for at least 4.5:1 for normal text and 3:1 for large text.