Repair a GIMP GPL palette that imports empty
Repair a GIMP GPL palette by checking its header and RGB rows. Use a two-swatch reference file to isolate missing colors and verify the imported values.
Start with a two-swatch GPL file
Save this example as plain text with a .gpl extension. The first line identifies the format. Each swatch row starts with three decimal integers in red, green, blue order, followed by its name. The Columns line controls the display layout.
TEXTGIMP Palette
Name: Interface
Columns: 2
#
37 99 235 Accent blue
255 255 255 PaperCheck the rows that disappeared
A line beginning with # is a comment. A list such as #2563EB followed by #FFFFFF therefore contributes no swatches. Convert each hex value to decimal channels before pasting it. Use spaces or tabs between the integers and keep each component in the range 0 through 255.
Compare the imported names, count and values
Open a copy of the reference file in the GPL palette converter. Expect two entries in order: Accent blue (#2563EB) and Paper (#FFFFFF). Once those match, add rows from the original file a few at a time. If the count stops growing, compare the last added lines with the reference, including the separators and line breaks.
Tools featured in this guide
Related formats
Frequently asked questions
Can I fix a palette by changing its extension?
Renaming a CSV or a binary palette leaves its contents unchanged. A GPL reader needs the text header and RGB rows shown above.
Can a swatch name contain spaces?
Yes. Everything after the three numeric components can form the name. Accent blue in the example imports as one swatch.
Authoritative Specifications & References
More color guides
- Converting Adobe .ASE, .ACO, Procreate .swatches & GIMP .gplLearn the binary differences between Adobe .ase, Photoshop .aco, Procreate .swatches ZIP, and GIMP .gpl — and convert between them locally in the browser.
- Convert CSS hex alpha to Android ARGBMove the alpha byte from the end of a CSS hex color to the front of an Android color resource. Check the result with a translucent blue test swatch.
- W3C Design Tokens (DTCG 2025.10): Figma Variables to CSSStructure vendor-neutral color tokens with W3C DTCG 2025.10 JSON ($type, $value colorSpace & components), aliases, and export to CSS & Tailwind v4.
- Hex to OKLCH: Migrating Design Tokens to Tailwind CSS v4Step-by-step guide to upgrading Hex and HSL Tailwind v3 themes into CSS Color 4 @theme oklch() scales with perceptual brightness and Display P3 support.