Tools

Home
Base64 Encode/DecodeString to HexHash GeneratorUTF-8 Encode/DecodeURL Encode/Decode

Convert Color Names To Png Online

Convert Color Names To Png online. All processing happens in your browser.

Your files never leave your browser
No image loaded
INPUT
🖼

Drop image here or click to upload

Max 50MB • 100% Private

OUTPUT
Ready

Type a CSS color name like "coral" or "steelblue" and download a PNG swatch of that exact color — no Photoshop, no hex code hunting. Pick your size, hit download, done. And everything runs in your browser. Nothing gets uploaded.

How It Works

Enter Color Name
→
Canvas Renders Color
→
Download PNG

You type a recognized CSS color name. The browser's Canvas API resolves that name to its exact RGB value and fills a rectangle at your chosen dimensions. The canvas is then exported as a PNG — a lossless format that keeps the color pixel-perfect with no compression artifacts.

Examples

Brand Style Guide Swatch

Building a quick reference PDF and you need clean color tiles for each brand color.

INPUT
Color name: "coral" Size: 200×200px
OUTPUT
200×200 PNG file Solid #FF7F50 fill

Placeholder Background for a Wireframe

Need a quick colored rectangle to drop into Figma or a slide deck. No need to fire up an image editor for this.

INPUT
Color name: "slategray" Size: 800×400px
OUTPUT
800×400 PNG file Solid #708090 fill

Testing CSS Named Colors Side by Side

Trying to decide between "darkorange" and "orangered" for a call-to-action button. Generate both PNGs and compare them on screen without writing a single line of CSS.

INPUT
Color name: "darkorange" Color name: "orangered" Size: 300×300px each
OUTPUT
Two PNGs: #FF8C00 (darkorange) #FF4500 (orangered)

Who Uses This

🎨 Designers

Generate color swatches for style guides and mood boards without opening Photoshop.

👨‍💻 Developers

Create solid-color test images for CSS background checks and placeholder assets.

📊 Presenters

Drop colored rectangles into slides and documents for quick visual references.

📚 Students

Learn the 148 named CSS colors by generating and comparing them as actual image files.

Common Mistakes

Misspelling the color name

"Fuchsia" trips people up — it is not "fuschia." Same with "chartreuse" and "aquamarine." If the output looks wrong or blank, double-check spelling against the official CSS color name list.

Using spaces in multi-word names

CSS color names have no spaces. It's "darkslategray" not "dark slate gray." Write them as one continuous word or the browser won't recognize them.

Expecting hex codes to work here

This tool is built for named colors — "rebeccapurple," "papayawhip," "midnightblue." If you already have a hex code like #FF6347, you don't need a name converter. Use a hex-to-image tool instead.

Technical Details

Frequently Asked Questions

How many named colors exist in CSS?

There are 148 named colors in the CSS Color Level 4 spec. They range from basics like "red" and "blue" to oddities like "lemonchiffon" and "peachpuff." Each name maps to one fixed hex value — no ambiguity.

Can I convert a color name to JPG instead of PNG?

The download here is PNG, which is the better choice for solid colors. JPG uses lossy compression that can introduce artifacts around flat-color edges. If you really need JPG, save the PNG first and run it through any image format converter.

Are CSS color names case-sensitive?

No. "DarkOliveGreen," "darkolivegreen," and "DARKOLIVEGREEN" all resolve to the same color (#556B2F). Browsers don't care about capitalization for named colors.

Does this tool upload my data anywhere?

Nope. The PNG is generated on a canvas element inside your browser tab. Nothing leaves your machine — there's no server call at all. Close the tab and it is gone.

What is the difference between "gray" and "grey" in CSS?

Both spellings work. CSS accepts "gray" and "grey" (plus variants like "darkgray"/"darkgrey") and maps them to the same hex value. Use whichever spelling you prefer — the output PNG will be identical.

Share: