Wasim's Site

Generate All-Color PNG

Create a PNG containing all 16,777,216 RGB colors, each exactly once. Choose the arrangement and download.

1,048,576 colors · 1024×1024px

Choose a size and arrangement, then press Generate.

Every RGB color in a single image

There are exactly 16,777,216 colors in 24-bit RGB (256 × 256 × 256). A 4096 × 4096 image has exactly that many pixels — so it can show every single color, each used precisely once, with none missing or duplicated. This tool builds that image in your browser and lets you pick how the colors are arranged.

Arrangements

  • Sequential — colors in numeric order, producing smooth red/green/blue bands.
  • Z-order (Morton) — interleaves the X/Y coordinates so similar colors cluster into blocks.
  • Scrambled — a bijective shuffle that spreads the palette into colorful noise.

Each arrangement is a one-to-one mapping, so the picture always contains the complete palette — only the positions change.

Frequently Asked Questions

How can one image contain every color?
A 24-bit RGB color has 256 × 256 × 256 = 16,777,216 possible values. A 4096 × 4096 image has exactly 4096 × 4096 = 16,777,216 pixels — the same number — so it can hold every color exactly once with none missing and none repeated.
What do the arrangements do?
They change how the colors are laid out while still using each one exactly once. "Sequential" produces smooth RGB bands; "Z-order (Morton)" interleaves the coordinates into blocky regions; "Scrambled" spreads colors into noise. The set of colors is identical — only their positions differ.
Why is the file so large?
Because every pixel is a different color, there is almost no repetition for PNG to compress, so the full 4096×4096 image is tens of megabytes. The smaller sizes (samples of the full palette) are much lighter.
What is it useful for?
Testing displays and color reproduction, demonstrating 24-bit color depth, generating unusual wallpapers or textures, art projects, and as a fun "allRGB" curiosity.
Is anything uploaded?
No. The image is generated pixel-by-pixel in your browser with the Canvas API and downloaded locally.