Image color picker and palette extractor

How do I choose and reuse colors for a figure?

Choose a color on the panel or pick it from an image. Build six hue-based palettes for R or Python. Images stay in this browser.

Your image and screenshot stay in this browser. Clear removes the current preview and results. Choosing an image sends no image data to the server.

Drop one image here, or choose a file.

Choose an image, paste a screenshot or try the example.

Clearing the image removes its preview and extracted results. You can keep choosing colors on this panel; refreshing resets the manual choice.

Build color harmonies

Analogous

Hue offsets: -30° / 0° / +30°

View R / Python values
c("#20AEB0", "#2066B0", "#2220B0")
["#20AEB0", "#2066B0", "#2220B0"]

Complementary

Hue offsets: 0° / +180°

View R / Python values
c("#2066B0", "#B06A20")
["#2066B0", "#B06A20"]

Split complementary

Hue offsets: 0° / +150° / +210°

View R / Python values
c("#2066B0", "#B02220", "#AEB020")
["#2066B0", "#B02220", "#AEB020"]

Triadic

Hue offsets: 0° / +120° / +240°

View R / Python values
c("#2066B0", "#B02066", "#66B020")
["#2066B0", "#B02066", "#66B020"]

Rectangle

Hue offsets: 0° / +60° / +180° / +240°

View R / Python values
c("#2066B0", "#6A20B0", "#B06A20", "#66B020")
["#2066B0", "#6A20B0", "#B06A20", "#66B020"]

Square

Hue offsets: 0° / +90° / +180° / +270°

View R / Python values
c("#2066B0", "#B020AE", "#B06A20", "#20B022")
["#2066B0", "#B020AE", "#B06A20", "#20B022"]

Try the colors on a small figure

Try the colors on a small figure · A=8, B=11, C=90816Value8A11B9C

Illustrative values A=8, B=11, C=9, D=14. The preview uses the first 2–4 groups to match the palette size. Its vertical scale stays at 0–16.

What do the controls and angles mean?

RGB records red, green and blue channels from 0 to 255. Hue follows an sRGB wheel: red 0°, yellow 60°, green 120°, cyan 180°, blue 240° and magenta 300°. The panel increases HSV saturation from left to right and value from bottom to top. HSL uses its own saturation and lightness scales.

Each combination adds the displayed hue offsets to the current hue, wraps around at 360°, and keeps the current HSV saturation and value. HEX channels are rounded to integers. These hue steps produce different visual distances around the wheel.

At zero saturation or zero value, several hue choices produce the same RGB color. Raise saturation and value to see the hue differences.

Use these combinations to explore group colors. Check labels, symbol shapes, text contrast and grayscale before using a palette in a research figure.

W3C: HSL color notation

Try these colors before choosing an image

#2066B0
#E18B32
#5B9279
#874EA1

The image workspace has a four-color example button. Use it to inspect these known colors and their equal shares. Browse the R color chart and ggplot2 example

Reuse colors in a research figure

  1. Choose your image, paste a copied screenshot into the paste box, or start with the four-color example.
  2. For a line or symbol, click inside its solid area. You can also enter the original pixel coordinates x and y, starting at 0. For a whole figure, choose the palette size and background filter.
  3. Copy the selected HEX or the palette list into your plotting settings. R and Matplotlib accept quoted HEX color strings. Keep a separate record of which color belongs to each data series.

The example contains four equal areas: #2066B0, #E18B32, #5B9279 and #874EA1. Each occupies 25% of the analyzed pixels. Try the example to compare these known values with the output.

How do I pick the color of a thin line?

Use a PNG export when available. Read a pixel from the center of the stroke with the x/y controls; edge pixels can blend the line with its background. The single-pixel read uses the decoded image’s original dimensions.

Use a current browser with JavaScript, Canvas and native image decoding enabled. Screenshot paste depends on the browser and operating system; file selection is also available.

Color format references

How are the colors calculated?

Clicking reads the browser-decoded sRGB pixel at the displayed x/y coordinates, starting at 0. JPEG compression, antialiasing and color profiles can affect these values. HEX includes an alpha pair for transparent pixels.

The palette samples a preview with its longest side limited to 512 pixels and groups similar RGB values. It uses pixels with alpha ≥ 250/255. The background option skips pixels whose R, G and B are all 246 or higher. Percentages refer to included sampled pixels. Representative palette colors are rounded averages.

Static PNG, JPEG and WebP: up to 12 MB, 16 million pixels and 8192 pixels per side. File headers are checked before browser decoding. Large or unsupported images can be exported as a smaller PNG.

Check the same image’s print resolution