🎨

Color Picker

Choose an opaque web color visually, enter HEX or RGB, or sample a selected image. Compare harmonies, shades and tints before saving a small working palette.

Advertisement

HEX contains red, green and blue byte pairs; #RGB expands each digit. RGB components round to the nearest integer and clamp to 0–255. HSL derives hue, saturation and lightness; black and white contrast uses relative sRGB luminance.

Enter #ff0000: RGB becomes rgb(255, 0, 0), HSL hsl(0, 100%, 50%) and approximate CMYK 0/100/100/0. Red contrasts differently with white and black; these ratios alone do not certify an entire design.

Method and limits

CMYK is a simple numerical approximation, not an ICC print profile. HSL and CMYK displays round to whole percentages. Image sampling reduces the longest side to at most 2000 pixels; fully transparent samples are rejected and partial alpha is not composited.

The image path reads a selected file through FileReader and Canvas. Saved colors use this browser’s localStorage. Screen picking starts only from your button click where EyeDropper exists; browser permission and clipboard behavior still depend on the browser. Other site requests are separate.

🎨 Pick a color
HEX
RGB
HSL
CMYK
CSS
R
G
B

Pick From Image

Click preview to pick a color
Pick From Image

Color Harmonies

Complementary
Analogous
Triadic
Split Complementary

Shades

Tints

Saved Colors

No saved colors yet.

Contrast against black and white

White text
Black text

Copied

Copy failed. Select the result and copy it manually.

Embed this tool on your website

Use whole pixel dimensions from 1 to 4096.

× px (1–4096)

                        

💡 Integration Tip

Copy the embed code and paste it into your website HTML. The responsive version adapts to all screen sizes automatically.

4.8
4 ratings
✓

About Color Picker

Sample a selected image, or explicitly start screen selection where EyeDropper is supported. Get hex, RGB, and HSL values. Essential for designers and developers working with colors.

Choose an opaque web color visually, enter HEX or RGB, or sample a selected image. Compare harmonies, shades and tints before saving a small working palette. HEX contains red, green and blue byte pairs; #RGB expands each digit. RGB components round to the nearest integer and clamp to 0–255. HSL derives hue, saturation and lightness; black and white contrast uses relative sRGB luminance.

Enter #ff0000: RGB becomes rgb(255, 0, 0), HSL hsl(0, 100%, 50%) and approximate CMYK 0/100/100/0. Red contrasts differently with white and black; these ratios alone do not certify an entire design.

The image path reads a selected file through FileReader and Canvas. Saved colors use this browser’s localStorage. Screen picking starts only from your button click where EyeDropper exists; browser permission and clipboard behavior still depend on the browser. Other site requests are separate.

Use Cases

Sampling colors from images
Getting exact color codes
Creating color palettes
Matching brand colors
Developing design systems
Sample a color from a selected image.
Match a brand color by its exact code.
Prepare a palette for a design system.
Convert a CSS color for a design handoff.
Compare a color against black and white text.

How to use

1

Use the color picker interface

2

Select a color visually or enter values

3

Copy the color code in your preferred format

4

Save colors for later use

5

Select the color swatch or enter a 3- or 6-digit HEX value.

6

Adjust the R, G and B controls; 1.5 rounds to 2 before generating HEX.

7

Optionally choose or drop an image and click a visible pixel, or explicitly click the supported screen eyedropper.

8

Compare harmonies, shades, tints and the black/white contrast ratios; save useful colors.

9

Copy the needed HEX, RGB, HSL, CMYK or CSS value; remove saved colors when finished.

Pro Tips

  • Only browsers exposing EyeDropper show the screen control. It opens after an explicit click and may be cancelled or refused. Image sampling remains available; it samples the downscaled image rather than a print profile.
  • Toggle between hex, RGB, and HSL
  • Save frequently used colors
  • CMYK is a simple numerical approximation, not an ICC print profile. HSL and CMYK displays round to whole percentages. Image sampling reduces the longest side to at most 2000 pixels; fully transparent samples are rejected and partial alpha is not composited.
  • The image path reads a selected file through FileReader and Canvas. Saved colors use this browser’s localStorage. Screen picking starts only from your button click where EyeDropper exists; browser permission and clipboard behavior still depend on the browser. Other site requests are separate.

Troubleshooting

Problem:

Enter 3 or 6 hexadecimal digits, or complete numeric components.

Solution:

Adjust the R, G and B controls; 1.5 rounds to 2 before generating HEX.

Problem:

What does #RGB mean?

Solution:

Each digit is repeated: #f00 means #ff0000. Six digits contain the red, green and blue values from 00 to FF.

Frequently Asked Questions

A 6-character code (like #FF5733) representing colors in web development.

Hue, Saturation, Lightness - a more intuitive way to adjust colors.

Only browsers exposing EyeDropper show the screen control. It opens after an explicit click and may be cancelled or refused. Image sampling remains available; it samples the downscaled image rather than a print profile.

Each digit is repeated: #f00 means #ff0000. Six digits contain the red, green and blue values from 00 to FF.

Only browsers exposing EyeDropper show the screen control. It opens after an explicit click and may be cancelled or refused. Image sampling remains available; it samples the downscaled image rather than a print profile.

Popular Tools

No more tools to show
Explore All Tools
FreeWebTools AI